1 | <?php |
||
17 | class BlogEntry extends AbstractContentType implements ContentTypeInterface |
||
18 | { |
||
19 | /** |
||
20 | * Excerpt |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private $excerpt; |
||
25 | |||
26 | /** |
||
27 | * Exends |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | private $extend; |
||
32 | |||
33 | /** |
||
34 | * Tags |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | private $tags = []; |
||
39 | |||
40 | /** |
||
41 | * Constructor |
||
42 | * |
||
43 | * @param string $id |
||
44 | * @param string $title |
||
45 | * @param string $content |
||
46 | * @param \DateTime $created |
||
47 | * @param \DateTime $updated |
||
48 | * @param bool $draft |
||
49 | * @param string $template |
||
50 | * @param string $excerpt |
||
51 | * @param string $extend |
||
52 | */ |
||
53 | public function __construct(string $id, string $title, string $content, \DateTime $created, \DateTime $updated, |
||
60 | |||
61 | /** |
||
62 | * Get excerpt |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getExcerpt() : string |
||
70 | |||
71 | /** |
||
72 | * Get extend |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getExtend() : string |
||
80 | |||
81 | /** |
||
82 | * Get tags |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | public function getTags() : array |
||
90 | |||
91 | /** |
||
92 | * Add tag |
||
93 | * |
||
94 | * @param Tag $tag |
||
95 | */ |
||
96 | public function addTag(Tag $tag) |
||
100 | |||
101 | /** |
||
102 | * Get type |
||
103 | * |
||
104 | * {@inheritDoc} |
||
105 | * @see \Jolicht\MarkdownCms\ContentType\AbstractContentType::getType() |
||
106 | */ |
||
107 | public function getType() : string |
||
111 | } |