for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the FOSRestBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\RestBundle\Request\Pagination;
/**
* @author Bartek Chmura <[email protected]>
final class PagePagination implements PaginationInterface
{
const DEFAULT_PAGE = "1";
const DEFAULT_OFFSET = "0";
* @var string
private $page = self::DEFAULT_PAGE;
public function getPage(): string
return $this->page;
}
public function setPage(string $page): self
$this->page = $page;
return $this;