| @@ 7-26 (lines=20) @@ | ||
| 4 | ||
| 5 | use Yandex\Market\Content\Models\Base\PagedModel; |
|
| 6 | ||
| 7 | class ResponseModelOutletsGet extends PagedModel |
|
| 8 | { |
|
| 9 | protected $mappingClasses = [ |
|
| 10 | 'items' => 'Yandex\Market\Content\Models\Outlets' |
|
| 11 | ]; |
|
| 12 | ||
| 13 | protected $propNameMap = [ |
|
| 14 | 'outlet' => 'items' |
|
| 15 | ]; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * Constructor |
|
| 19 | * |
|
| 20 | * @param array $data |
|
| 21 | */ |
|
| 22 | public function __construct($data = array()) |
|
| 23 | { |
|
| 24 | parent::__construct($data['outlets']); |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| @@ 7-26 (lines=20) @@ | ||
| 4 | ||
| 5 | use Yandex\Market\Content\Models\Base\PagedModel; |
|
| 6 | ||
| 7 | class ResponseShopOutletsGet extends PagedModel |
|
| 8 | { |
|
| 9 | protected $mappingClasses = [ |
|
| 10 | 'items' => 'Yandex\Market\Content\Models\Outlets' |
|
| 11 | ]; |
|
| 12 | ||
| 13 | protected $propNameMap = [ |
|
| 14 | 'outlet' => 'items' |
|
| 15 | ]; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * Constructor |
|
| 19 | * |
|
| 20 | * @param array $data |
|
| 21 | */ |
|
| 22 | public function __construct($data = array()) |
|
| 23 | { |
|
| 24 | parent::__construct($data['outlets']); |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||