| 1 | <?php |
||
| 10 | trait Properties_getter { |
||
| 11 | /** |
||
| 12 | * Get items for specified property (can get single property or array of properties) |
||
| 13 | * |
||
| 14 | * @param string $property |
||
| 15 | * @param string[]|string[][] $items Typically obtained as `...$items` |
||
| 16 | * |
||
| 17 | * @return mixed|mixed[]|null Property items (or associative array of items) if exists or `null` otherwise (in case if `$item` is an array even one |
||
| 18 | * missing key will cause the whole thing to fail) |
||
| 19 | */ |
||
| 20 | 36 | protected function get_property_items ($property, $items) { |
|
| 40 | } |
||
| 41 |