1 | <?php |
||
7 | class Params extends Definition\Group { |
||
8 | |||
9 | private $secure = []; |
||
10 | |||
11 | private $types = [ |
||
12 | |||
13 | 'boolean' => 'Modules\Entitizer\Utils\Definition\Item\Param\Type\Boolean', |
||
14 | 'integer' => 'Modules\Entitizer\Utils\Definition\Item\Param\Type\Integer', |
||
15 | 'textual' => 'Modules\Entitizer\Utils\Definition\Item\Param\Type\Textual' |
||
16 | ]; |
||
17 | |||
18 | # Add param |
||
19 | |||
20 | private function add(string $type, string $name, array $args) { |
||
28 | |||
29 | # Constructor |
||
30 | |||
31 | public function __construct(Definition $definition, bool $auto_increment) { |
||
39 | |||
40 | # Add boolean param |
||
41 | |||
42 | public function boolean(string $name, bool $default = false) { |
||
46 | |||
47 | # Add integer param |
||
48 | |||
49 | public function integer(string $name, bool $short = false, int $length = 0, bool $unsigned = false, int $default = 0) { |
||
53 | |||
54 | # Add textual param |
||
55 | |||
56 | public function textual(string $name, bool $short = true, int $length = 0, bool $binary = false, string $default = '') { |
||
60 | |||
61 | # Return secure params list |
||
62 | |||
63 | public function secure() { |
||
67 | } |
||
68 | } |
||
69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.