| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | public function __construct( |
||
| 20 | string $body, |
||
| 21 | int $order, |
||
| 22 | $photo, |
||
| 23 | $source, |
||
| 24 | $lead = '' |
||
| 25 | ) { |
||
| 26 | $this->collection = new Collection([ |
||
| 27 | 'lead' => empty($lead) ? $this->createLeadFromBody($body) : $this->filterStringInstance($lead), |
||
| 28 | 'body' => $this->filterStringInstance($body), |
||
| 29 | 'source' => $this->fillSource($source, $photo), |
||
| 30 | 'order' => $order, |
||
| 31 | 'photo' => $this->filterUriInstance($photo), |
||
| 32 | ]); |
||
| 50 |