| Conditions | 3 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 25 | public function __construct( |
||
| 26 | string $uniqueId, |
||
| 27 | string $title, |
||
| 28 | string $content, |
||
| 29 | string $url, |
||
| 30 | $active = false, |
||
| 31 | $identifier = null |
||
| 32 | ) { |
||
| 33 | $properties = [ |
||
| 34 | 'title' => $this->filterStringInstance($title), |
||
| 35 | 'content' => $this->filterStringInstance($content), |
||
| 36 | 'url' => $this->filterUriInstance($url), |
||
| 37 | 'show' => $active ? 1 : 0, |
||
| 38 | 'uniqueId' => $uniqueId |
||
| 39 | ]; |
||
| 40 | |||
| 41 | $this->collection = new Collection($properties); |
||
| 42 | |||
| 43 | if ($identifier) { |
||
| 44 | $this->setId((string) $identifier); |
||
| 45 | } |
||
| 65 |