Conditions | 2 |
Paths | 5 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
67 | 825 | public function __construct(TmdbInterface $tmdb, int $item_id, array $options, string $item_name) |
|
68 | { |
||
69 | try { |
||
70 | 825 | $this->id = $item_id; |
|
71 | 825 | $this->tmdb = $tmdb; |
|
72 | 825 | $this->logger = $tmdb->getLogger(); |
|
73 | 825 | $this->conf = $this->tmdb->getConfiguration(); |
|
74 | 825 | $this->tmdb->checkOptionLanguage($options, $this->params); |
|
75 | |||
76 | 825 | $this->data = $this->tmdb->getRequest($item_name . '/' . (int) $item_id, $this->params); |
|
77 | 18 | } catch (TmdbException $ex) { |
|
78 | 3 | throw $ex; |
|
79 | } |
||
82 |