| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 23 | trait ElementTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * ElementTrait object variable |
||
| 27 | * @var \stdClass |
||
| 28 | */ |
||
| 29 | protected $element_trait; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Set ElementTrait variable |
||
| 33 | * @param \stdClass|null $data |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | 816 | protected function setElementTrait(?\stdClass $data) : void |
|
| 37 | { |
||
| 38 | 816 | $this->element_trait = $data; |
|
| 39 | 816 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get poster path |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 18 | public function getPosterPath() : string |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get backdrop |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 12 | public function getBackdropPath() : string |
|
| 63 | } |
||
| 64 | } |
||
| 65 |