| 1 | <?php |
||
| 18 | class Blog implements BlogInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $title; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $link; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $description; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var PermalinkInterface |
||
| 37 | */ |
||
| 38 | protected $permalinkGenerator; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $title |
||
| 42 | * @param string $link |
||
| 43 | * @param string $description |
||
| 44 | */ |
||
| 45 | public function __construct($title, $link, $description, PermalinkInterface $permalinkGenerator) |
||
| 52 | |||
| 53 | public function getPermalinkGenerator() |
||
| 57 | |||
| 58 | public function setDescription($description): void |
||
| 62 | |||
| 63 | public function getDescription() |
||
| 67 | |||
| 68 | public function setLink($link): void |
||
| 72 | |||
| 73 | public function getLink() |
||
| 77 | |||
| 78 | public function setTitle($title): void |
||
| 82 | |||
| 83 | public function getTitle() |
||
| 87 | } |
||
| 88 |