| 1 | <?php |
||
| 16 | trait TypeTrait |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @return int |
||
| 20 | */ |
||
| 21 | public abstract function getValue(); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | 3 | public function isPositive() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | 5 | public function isNegative() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | 6 | public function isZero() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | 1 | public function isNegativeOrZero() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return bool |
||
| 57 | */ |
||
| 58 | 1 | public function isPositiveOrZero() |
|
| 62 | } |
||
| 63 |