1 | <?php |
||
15 | class BlogEntry |
||
16 | { |
||
17 | /** |
||
18 | * Id |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * Title |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | private $title; |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | * |
||
34 | * @param string $id |
||
35 | * @param string $title |
||
36 | */ |
||
37 | public function __construct(string $id, string $title) |
||
42 | |||
43 | /** |
||
44 | * Get id |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getId() : string |
||
52 | |||
53 | /** |
||
54 | * Get title |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getTitle() : string |
||
62 | } |