| 1 | <?php | ||
| 10 | class Nested | ||
| 11 | { | ||
| 12 | /** | ||
| 13 | * @var array | ||
| 14 | */ | ||
| 15 | protected $nestedObjects = []; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * Nested constructor. | ||
| 19 | * @param array $nestedObjects | ||
| 20 | */ | ||
| 21 | 8 | public function __construct(array $nestedObjects) | |
| 25 | |||
| 26 | /** | ||
| 27 | * @return array | ||
| 28 | */ | ||
| 29 | 5 | public function properties(): array | |
| 33 | |||
| 34 | /** | ||
| 35 | * @param $key | ||
| 36 | * @return bool | ||
| 37 | */ | ||
| 38 | 7 | public function has($key): bool | |
| 42 | |||
| 43 | /** | ||
| 44 | * @param $key | ||
| 45 | * @return string | ||
| 46 | */ | ||
| 47 | 6 | public function get($key): string | |
| 55 | } | ||
| 56 |