| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class PostImage |
||
| 6 | { |
||
| 7 | private $url; |
||
| 8 | |||
| 9 | private $title; |
||
| 10 | |||
| 11 | private $altText; |
||
| 12 | |||
| 13 | private $cover; |
||
| 14 | |||
| 15 | public function __construct(string $url, string $title, string $altText, bool $cover) |
||
| 16 | { |
||
| 17 | $this->url = $url; |
||
| 18 | $this->title = $title; |
||
| 19 | $this->altText = $altText; |
||
| 20 | $this->cover = $cover; |
||
| 21 | } |
||
| 22 | public function url(): string |
||
| 23 | { |
||
| 24 | return $this->url; |
||
| 25 | } |
||
| 26 | public function title(): string |
||
| 29 | } |
||
| 30 | public function altText(): string |
||
| 31 | { |
||
| 32 | return $this->altText; |
||
| 33 | } |
||
| 34 | public function cover(): bool |
||
| 37 | } |
||
| 38 | } |
||
| 39 |