Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types=1); |
||
23 | public function __construct( |
||
24 | string $name, |
||
25 | $trending = false, |
||
26 | $identifier = null |
||
27 | ) { |
||
28 | $properties = [ |
||
29 | 'name' => $this->filterStringInstance($name), |
||
30 | 'trending' => $trending ? 1 : 0, |
||
31 | ]; |
||
32 | |||
33 | $this->collection = new Collection($properties); |
||
34 | |||
35 | if ($identifier) { |
||
36 | $this->setId((string) $identifier); |
||
37 | } |
||
56 |