1 | <?php |
||
19 | abstract class AbstractCriteria |
||
20 | { |
||
21 | use LoggerTrait; |
||
22 | |||
23 | /** |
||
24 | * Constructor |
||
25 | * |
||
26 | * @param array $config |
||
27 | */ |
||
28 | public function __construct(array $config = []) |
||
32 | |||
33 | /** |
||
34 | * @param array $properties |
||
35 | * @return static |
||
36 | */ |
||
37 | public function populate(array $properties = []) |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | public function hasProperty($name, $checkVars = true): bool |
||
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | public function canGetProperty($name, $checkVars = true): bool |
||
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | public function canSetProperty($name, $checkVars = true): bool |
||
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | public function hasMethod($name): bool |
||
81 | |||
82 | /** |
||
83 | * Returns the value of an object property. |
||
84 | * |
||
85 | * @param $name |
||
86 | * @return mixed |
||
87 | * @throws InvalidCallException |
||
88 | * @throws UnknownPropertyException |
||
89 | */ |
||
90 | public function __get($name) |
||
101 | |||
102 | /** |
||
103 | * Sets value of an object property. |
||
104 | * |
||
105 | * @param $name |
||
106 | * @param $value |
||
107 | * @throws InvalidCallException |
||
108 | * @throws UnknownPropertyException |
||
109 | */ |
||
110 | public function __set($name, $value) |
||
121 | |||
122 | /** |
||
123 | * Checks if a property is set, i.e. defined and not null. |
||
124 | * |
||
125 | * @param $name |
||
126 | * @return bool |
||
127 | */ |
||
128 | public function __isset($name) |
||
137 | |||
138 | /** |
||
139 | * Sets an object property to null. |
||
140 | * |
||
141 | * @param $name |
||
142 | * @throws InvalidCallException |
||
143 | */ |
||
144 | public function __unset($name) |
||
153 | |||
154 | /** |
||
155 | * Calls the named method which is not a class method. |
||
156 | * |
||
157 | * @param $name |
||
158 | * @param $params |
||
159 | * @throws UnknownMethodException |
||
160 | */ |
||
161 | public function __call($name, $params) |
||
165 | } |
||
166 |