| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | trait Types |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $key |
||
| 15 | * @return int |
||
| 16 | */ |
||
| 17 | public function int(string $key) : int |
||
| 18 | { |
||
| 19 | return (int) $this->get($key); |
||
|
|
|||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $key |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public function bool(string $key) : bool |
||
| 27 | { |
||
| 28 | return filter_var($this->get($key), FILTER_VALIDATE_BOOLEAN); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $key |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function string(string $key) : string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |