Total Complexity | 9 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 62.5% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | 1 | class BookPage { |
|
11 | use \Nette\SmartObject; |
||
12 | public string $slug; |
||
13 | public string $title; |
||
14 | /** @var array of [IBookPageCondition, string] */ |
||
15 | protected array $conditions = []; |
||
16 | |||
17 | public function __construct(string $slug, string $title) { |
||
20 | 1 | } |
|
21 | |||
22 | /** |
||
23 | * @deprecated Access the property directly |
||
24 | */ |
||
25 | public function getSlug(): string { |
||
26 | return $this->slug; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @deprecated Access the property directly |
||
31 | */ |
||
32 | protected function setSlug(string $slug): void { |
||
33 | $this->slug = $slug; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @deprecated Access the property directly |
||
38 | */ |
||
39 | public function getTitle(): string { |
||
40 | return $this->title; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @deprecated Access the property directly |
||
45 | */ |
||
46 | protected function setTitle(string $title): void { |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param mixed $parameter |
||
52 | */ |
||
53 | public function addCondition(IBookPageCondition $condition, $parameter): void { |
||
55 | 1 | } |
|
56 | |||
57 | /** |
||
58 | * @deprecated Access the property directly |
||
59 | */ |
||
60 | public function isAllowed(): bool { |
||
67 | } |
||
68 | } |
||
69 | ?> |