1 | <?php |
||
12 | class Fields |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $fields = []; |
||
18 | |||
19 | /** |
||
20 | * @param string $type |
||
21 | * @param string $fieldName |
||
22 | */ |
||
23 | public function addField($type, $fieldName) |
||
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | */ |
||
31 | public function get() |
||
35 | |||
36 | /** |
||
37 | * @return string[] |
||
38 | */ |
||
39 | public function types() |
||
43 | |||
44 | /** |
||
45 | * @param string $type |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | public function members($type) |
||
53 | |||
54 | /** |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function isEmpty() |
||
61 | } |
||
62 |