| Total Complexity | 4 | 
| Total Lines | 46 | 
| Duplicated Lines | 0 % | 
| Coverage | 45.45% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php declare(strict_types = 1);  | 
            ||
| 26 | class Change extends Results implements ChangeResultsInterface  | 
            ||
| 27 | { | 
            ||
| 28 | /**  | 
            ||
| 29 | * Adult  | 
            ||
| 30 | * @var bool  | 
            ||
| 31 | */  | 
            ||
| 32 | protected $adult = null;  | 
            ||
| 33 | /**  | 
            ||
| 34 | * Id  | 
            ||
| 35 | * @var int  | 
            ||
| 36 | */  | 
            ||
| 37 | protected $id = null;  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Constructor  | 
            ||
| 41 | * @param TmdbInterface $tmdb  | 
            ||
| 42 | * @param \stdClass $result  | 
            ||
| 43 | */  | 
            ||
| 44 | 9 | public function __construct(TmdbInterface $tmdb, \stdClass $result)  | 
            |
| 45 |     { | 
            ||
| 46 | 9 | parent::__construct($tmdb, $result);  | 
            |
| 47 | |||
| 48 | // Populate data  | 
            ||
| 49 | 9 | $this->id = $this->data->id;  | 
            |
| 50 | 9 | $this->adult = $this->data->adult;  | 
            |
| 51 | 9 | }  | 
            |
| 52 | |||
| 53 | /**  | 
            ||
| 54 | * Get Id  | 
            ||
| 55 | * @return int  | 
            ||
| 56 | */  | 
            ||
| 57 | public function getId() : int  | 
            ||
| 58 |     { | 
            ||
| 59 | return (int) $this->id;  | 
            ||
| 60 | }  | 
            ||
| 61 | |||
| 62 | /**  | 
            ||
| 63 | * Adult  | 
            ||
| 64 | * @return bool  | 
            ||
| 65 | */  | 
            ||
| 66 | public function getAdult() : bool  | 
            ||
| 72 | }  | 
            ||
| 73 | }  | 
            ||
| 74 |