| 1 | <?php |
||
| 7 | class Definition implements ArrayAccess |
||
| 8 | { |
||
| 9 | /** @var self[] */ |
||
| 10 | private static $cache; |
||
| 11 | |||
| 12 | /** @var Property[] */ |
||
| 13 | private $properties; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param Property[] $properties |
||
| 17 | */ |
||
| 18 | public function __construct(array $properties) |
||
| 22 | |||
| 23 | public function has(string $name): bool |
||
| 27 | |||
| 28 | public function get(string $name): ?Property |
||
| 32 | |||
| 33 | public function all(): array |
||
| 37 | |||
| 38 | public function propertyNames(): array |
||
| 42 | |||
| 43 | public static function make(string $modelClass): self |
||
| 47 | |||
| 48 | public function offsetExists($offset) |
||
| 52 | |||
| 53 | public function offsetGet($offset) |
||
| 57 | |||
| 58 | public function offsetSet($offset, $value) |
||
| 62 | |||
| 63 | public function offsetUnset($offset) |
||
| 67 | } |
||
| 68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.