Enum.php
5 years ago
EnumInterface.php
5 years ago
LogCategory.php
5 years ago
LogType.php
5 years ago
EnumInterface.php
28 lines
| 1 | <?php |
| 2 | namespace Give\Log\ValueObjects; |
| 3 | |
| 4 | interface EnumInterface { |
| 5 | /** |
| 6 | * Get value |
| 7 | * |
| 8 | * @return string|null |
| 9 | */ |
| 10 | public function getValue(); |
| 11 | |
| 12 | /** |
| 13 | * Get default value |
| 14 | * |
| 15 | * @return string |
| 16 | */ |
| 17 | public static function getDefault(); |
| 18 | |
| 19 | /** |
| 20 | * Check if Enum is equal with the passed variable |
| 21 | * |
| 22 | * @param mixed $value |
| 23 | * |
| 24 | * @return bool |
| 25 | */ |
| 26 | public function equalsTo( $value ); |
| 27 | } |
| 28 |