| @@ 18-65 (lines=48) @@ | ||
| 15 | * @package Yandex\DataSync\Responses |
|
| 16 | * @author Alexander Khaylo <[email protected]> |
|
| 17 | */ |
|
| 18 | class DatabasesResponse extends Model |
|
| 19 | { |
|
| 20 | protected $items = null; |
|
| 21 | ||
| 22 | protected $total = null; |
|
| 23 | ||
| 24 | protected $limit = null; |
|
| 25 | ||
| 26 | protected $offset = null; |
|
| 27 | ||
| 28 | protected $mappingClasses = [ |
|
| 29 | 'items' => 'Yandex\DataSync\Models\Databases', |
|
| 30 | ]; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * An array of objects containing information about existing databases. |
|
| 34 | * |
|
| 35 | * @return \Yandex\DataSync\Models\Databases |
|
| 36 | */ |
|
| 37 | public function getItems() |
|
| 38 | { |
|
| 39 | return $this->items; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return null |
|
| 44 | */ |
|
| 45 | public function getLimit() |
|
| 46 | { |
|
| 47 | return $this->limit; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @return null |
|
| 52 | */ |
|
| 53 | public function getOffset() |
|
| 54 | { |
|
| 55 | return $this->offset; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @return null |
|
| 60 | */ |
|
| 61 | public function getTotal() |
|
| 62 | { |
|
| 63 | return $this->total; |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| @@ 7-56 (lines=50) @@ | ||
| 4 | ||
| 5 | use Yandex\Common\Model; |
|
| 6 | ||
| 7 | class PagedModel extends Model |
|
| 8 | { |
|
| 9 | protected $page = null; |
|
| 10 | ||
| 11 | protected $total = null; |
|
| 12 | ||
| 13 | protected $count = null; |
|
| 14 | ||
| 15 | protected $items = null; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * Retrieve the count property |
|
| 19 | * |
|
| 20 | * @return int|null |
|
| 21 | */ |
|
| 22 | public function getCount() |
|
| 23 | { |
|
| 24 | return $this->count; |
|
| 25 | } |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Retrieve the page property |
|
| 29 | * |
|
| 30 | * @return int|null |
|
| 31 | */ |
|
| 32 | public function getPage() |
|
| 33 | { |
|
| 34 | return $this->page; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * Retrieve the total property |
|
| 39 | * |
|
| 40 | * @return int|null |
|
| 41 | */ |
|
| 42 | public function getTotal() |
|
| 43 | { |
|
| 44 | return $this->total; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Retrieve the items property |
|
| 49 | * |
|
| 50 | * @return ObjectModel|null |
|
| 51 | */ |
|
| 52 | public function getItems() |
|
| 53 | { |
|
| 54 | return $this->items; |
|
| 55 | } |
|
| 56 | } |
|
| 57 | ||