Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
26 | trait TVEpisodeTrait |
||
27 | { |
||
28 | /** |
||
29 | * TVEpisodeTrait object variable |
||
30 | * @var \stdClass |
||
31 | */ |
||
32 | protected $tvepisode_trait; |
||
33 | |||
34 | /** |
||
35 | * Set TVEpisodeTrait variable |
||
36 | * @param TmdbInterface $tmdb |
||
37 | * @param \stdClass|null $data |
||
38 | * @return void |
||
39 | */ |
||
40 | 141 | protected function setTVEpisodeTrait(TmdbInterface $tmdb, ?\stdClass $data) : void |
|
41 | { |
||
42 | 141 | $this->tvepisode_trait = new \stdClass(); |
|
43 | 141 | $this->tvepisode_trait->tmdb = $tmdb; |
|
44 | 141 | $this->tvepisode_trait->data = $data; |
|
45 | 141 | } |
|
46 | |||
47 | /** |
||
48 | * Get crew of TV Episode |
||
49 | * @return \Generator|Results\Crew |
||
50 | */ |
||
51 | 27 | public function getCrew() : \Generator |
|
59 | } |
||
60 | } |
||
63 |