1 | <?php |
||
21 | class Keyword implements KeywordInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | protected $id; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $slug; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $name; |
||
37 | |||
38 | public function __construct(string $name, string $slug = null) |
||
47 | |||
48 | public function getId(): int |
||
52 | |||
53 | public function getSlug(): string |
||
57 | |||
58 | public function setSlug(string $slug): void |
||
62 | |||
63 | public function getName(): string |
||
67 | |||
68 | public function setName(string $name): void |
||
72 | } |
||
73 |