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-2020
*/
namespace VfacTmdb\Results;
use VfacTmdb\Abstracts\Results;
use VfacTmdb\Interfaces\TmdbInterface;
use VfacTmdb\Interfaces\Results\ChangeResultsInterface;
* Class to manipulate a Change result
* @package Tmdb
* @author Steve Richter <[email protected]>
class Change extends Results implements ChangeResultsInterface
{
* Adult
* @var bool
protected $adult = null;
* Id
* @var int
protected $id = null;
* Constructor
* @param TmdbInterface $tmdb
* @param \stdClass $result
public function __construct(TmdbInterface $tmdb, \stdClass $result)
parent::__construct($tmdb, $result);
// Populate data
$this->id = $this->data->id;
$this->adult = $this->data->adult;
}
* Get Id
* @return int
public function getId() : int
return (int) $this->id;
* @return bool
public function getAdult() : bool
return $this->adult;