| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class Gallery extends Model |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * constructor |
||
| 14 | * |
||
| 15 | * @param \Psr\Http\Message\UriInterface|string $photo |
||
| 16 | * @param \Psr\Http\Message\UriInterface|string $source |
||
| 17 | * @param string $lead |
||
| 18 | */ |
||
| 19 | public function __construct( |
||
| 32 | ]); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * source taken from photo url if not available |
||
| 37 | * |
||
| 38 | * @param \Psr\Http\Message\UriInterface|string $source |
||
| 39 | * @param \Psr\Http\Message\UriInterface|string $photo |
||
| 40 | */ |
||
| 41 | private function fillSource($source, $photo): string |
||
| 50 |