Skip to content

Commit

Permalink
Поправил пейджинг, убрал из общих групп старую ручку
Browse files Browse the repository at this point in the history
  • Loading branch information
coyl committed Sep 15, 2019
1 parent 9f50f12 commit a75a6e0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions UtilsBundle/src/DTO/ApiResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ class ApiResponse
* @var mixed Данные, результат выполнения запроса
*/
private $data;

/**
* @deprecated используется лишь для соответствия старому АПИ
* @Serializer\Groups({"API"})
* @Serializer\SerializedName("message")
* @Serializer\Type("string")
* @var mixed используется лишь для соответствия старому АПИ
*/
private $error;
/**
* @var array|null
* @Serializer\Groups({"API"})
Expand All @@ -37,6 +28,15 @@ class ApiResponse
private $status;

private $headers;

/**
* @deprecated используется лишь для соответствия старому АПИ
* @Serializer\Groups({"OLD_API"})
* @Serializer\SerializedName("message")
* @Serializer\Type("string")
* @var mixed используется лишь для соответствия старому АПИ
*/
private $error;

public function __construct(
$data,
Expand Down Expand Up @@ -98,8 +98,8 @@ public function getPageParams(): ?array
return $this->pageParams;
}

public function setPageParams(int $count, int $length): void
public function setPageParams(int $page, int $length): void
{
$this->pageParams = ['count' => $count, 'length' => $length];
$this->pageParams = ['page' => $page, 'length' => $length];
}
}

0 comments on commit a75a6e0

Please sign in to comment.