Property | Type | Description | |
---|---|---|---|
$data | mixed[] | ||
$rel | string | ||
$total | integer |
Method | Description | |
---|---|---|
__construct ( mixed $data, string $rel, string $route, array $parameters, integer $page, integer $limit, integer $total ) | ||
getData ( ) : mixed[] | Returns data. | |
getRel ( ) : string | Returns relation name. | |
getTotal ( ) : integer | Returns total number of elements. |
public __construct ( mixed $data, string $rel, string $route, array $parameters, integer $page, integer $limit, integer $total ) | ||
$data | mixed | The data which will be presented |
$rel | string | The name of the relation inside of the _embedded field |
$route | string | The name of the route, for generating the links |
$parameters | array | The parameters to append to the route |
$page | integer | The number of the current page |
$limit | integer | The size of one page |
$total | integer | The total number of elements |