1 | <?php |
||
5 | class PhotoSizeArray extends AbstractEntity |
||
6 | { |
||
7 | const ENTITY_TYPE = 'Photo'; |
||
8 | |||
9 | const MAX_FILE_SIZE = 'max_file_size'; |
||
10 | |||
11 | const MIN_FILE_SIZE = 'min_file_size'; |
||
12 | |||
13 | protected $photoSizes; |
||
14 | |||
15 | public function __construct(array $data) |
||
27 | |||
28 | /** |
||
29 | * @return mixed |
||
30 | */ |
||
31 | public function getPhotoSizes() |
||
35 | |||
36 | /** |
||
37 | * @param mixed $photoSizes |
||
38 | */ |
||
39 | public function setPhotoSizes($photoSizes) |
||
43 | |||
44 | protected function initPhotoSizesFromData($data) |
||
56 | |||
57 | public function getPhotoSizeWithMinFileSize() |
||
61 | |||
62 | public function getPhotoSizeWithMaxFileSize() |
||
66 | |||
67 | protected function getPhotoSizeWithMinMaxFileSize($minMax) |
||
87 | } |