| Total Complexity | 9 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class UserProfilePhotos extends AbstractEntity |
||
| 6 | { |
||
| 7 | const ENTITY_TYPE = 'UserProfilePhotos'; |
||
| 8 | |||
| 9 | protected $total_count; |
||
| 10 | |||
| 11 | protected $photos; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return mixed |
||
| 15 | */ |
||
| 16 | public function getTotalCount() |
||
| 17 | { |
||
| 18 | return $this->total_count; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param mixed $total_count |
||
| 23 | */ |
||
| 24 | public function setTotalCount($total_count) |
||
| 25 | { |
||
| 26 | $this->total_count = $total_count; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $photos |
||
| 31 | * |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setPhotos($photos) |
||
| 35 | { |
||
| 36 | $this->photos = $photos; |
||
| 37 | |||
| 38 | if (is_array($photos)) { |
||
| 39 | $this->photos = []; |
||
| 40 | |||
| 41 | foreach ($photos as $photo) { |
||
| 42 | $this->photos[] = new PhotoSizeArray($photo); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | public function getPhotos() |
||
| 55 | } |
||
| 56 | |||
| 57 | public function getPhotoByOffset($offset = 0) |
||
| 60 | } |
||
| 61 | } |