| 1 | <?php |
||
| 8 | final class PageSize implements \JsonSerializable |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $value; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var UriInterface |
||
| 17 | */ |
||
| 18 | private $uri; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | private $applied; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * PageSize constructor. |
||
| 27 | */ |
||
| 28 | public function __construct(int $value, bool $applied, UriInterface $uri) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return int |
||
| 37 | */ |
||
| 38 | public function getValue(): int |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function isApplied(): bool |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return UriInterface |
||
| 53 | */ |
||
| 54 | public function getUri(): UriInterface |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritDoc |
||
| 61 | */ |
||
| 62 | public function jsonSerialize() |
||
| 70 | } |
||
| 71 |