| 1 | <?php |
||
| 7 | class PropertyFiles |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var PropertyFile[] |
||
| 11 | */ |
||
| 12 | private $files = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array $files |
||
| 16 | */ |
||
| 17 | public function __construct(array $files = []) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param PropertyFile $file |
||
| 26 | * @return PropertyFile |
||
| 27 | */ |
||
| 28 | public function add(PropertyFile $file) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param Property $property |
||
| 41 | * @return PropertyFile |
||
| 42 | * @throws UnexpectedValueException |
||
| 43 | */ |
||
| 44 | public function getByProperty(Property $property) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param Property $property |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | private function keyFromProperty(Property $property) |
||
| 63 | } |