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