We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 6 | class Type extends AbstractRule |
||
| 7 | { |
||
| 8 | public $type; |
||
| 9 | public $availableTypes = array( |
||
| 10 | 'array' => 'array', |
||
| 11 | 'bool' => 'boolean', |
||
| 12 | 'boolean' => 'boolean', |
||
| 13 | 'callable' => 'callable', |
||
| 14 | 'double' => 'double', |
||
| 15 | 'float' => 'double', |
||
| 16 | 'int' => 'integer', |
||
| 17 | 'integer' => 'integer', |
||
| 18 | 'null' => 'NULL', |
||
| 19 | 'object' => 'object', |
||
| 20 | 'resource' => 'resource', |
||
| 21 | 'string' => 'string', |
||
| 22 | ); |
||
| 23 | |||
| 24 | 18 | public function __construct($type) |
|
| 33 | |||
| 34 | 16 | public function validate($input) |
|
| 43 | } |
||
| 44 |