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 Tmdb package.
*
* (c) Vincent Faliès <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @author Vincent Faliès <[email protected]>
* @copyright Copyright (c) 2017
*/
namespace VfacTmdb\Traits;
* listItems trait
* @package Tmdb
trait ListItems
{
* Page number
* @var int
public $page = 1;
* Total pages
public $total_pages = 1;
* Total results
public $total_results = 0;
* Get page from result search
* @return int
public function getPage() : int
return $this->page;
}
* Get total page from result search
public function getTotalPages() : int
return $this->total_pages;
* Get total results from search
public function getTotalResults() : int
return $this->total_results;