| 1 | <?php |
||
| 15 | class Tag |
||
| 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 = null) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get id |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getId() : string |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get title |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getTitle() : string |
||
| 65 | } |