|
25 | 25 | */
|
26 | 26 | interface CmsManagerInterface
|
27 | 27 | {
|
28 |
| - /** |
29 |
| - * @param string $name |
30 |
| - * |
31 |
| - * @return PageBlockInterface|null |
32 |
| - */ |
33 |
| - public function findContainer($name, PageInterface $page, ?PageBlockInterface $parentContainer = null); |
| 28 | + public function findContainer(string $name, PageInterface $page, ?PageBlockInterface $parentContainer = null): ?PageBlockInterface; |
34 | 29 |
|
35 |
| - /** |
36 |
| - * @param string $slug |
37 |
| - */ |
38 |
| - public function getPageByUrl(SiteInterface $site, $slug): PageInterface; |
| 30 | + public function getPageByUrl(SiteInterface $site, string $slug): PageInterface; |
39 | 31 |
|
40 |
| - /** |
41 |
| - * @param string $routeName |
42 |
| - * |
43 |
| - * @return PageInterface |
44 |
| - */ |
45 |
| - public function getPageByRouteName(SiteInterface $site, $routeName); |
| 32 | + public function getPageByRouteName(SiteInterface $site, string $routeName): PageInterface; |
46 | 33 |
|
47 |
| - /** |
48 |
| - * @param string $pageAlias |
49 |
| - * |
50 |
| - * @return PageInterface |
51 |
| - */ |
52 |
| - public function getPageByPageAlias(SiteInterface $site, $pageAlias); |
| 34 | + public function getPageByPageAlias(SiteInterface $site, string $pageAlias): PageInterface; |
53 | 35 |
|
54 |
| - /** |
55 |
| - * @param string $routeName |
56 |
| - * |
57 |
| - * @return PageInterface |
58 |
| - */ |
59 |
| - public function getInternalRoute(SiteInterface $site, $routeName); |
| 36 | + public function getInternalRoute(SiteInterface $site, string $routeName): PageInterface; |
60 | 37 |
|
61 |
| - /** |
62 |
| - * @param string $name |
63 |
| - * |
64 |
| - * @return PageInterface |
65 |
| - */ |
66 |
| - public function getPageByName(SiteInterface $site, $name); |
| 38 | + public function getPageByName(SiteInterface $site, string $name): PageInterface; |
67 | 39 |
|
68 | 40 | /**
|
69 | 41 | * @param int|string $id
|
70 |
| - * |
71 |
| - * @return PageInterface |
72 | 42 | */
|
73 |
| - public function getPageById($id); |
| 43 | + public function getPageById($id): PageInterface; |
74 | 44 |
|
75 | 45 | /**
|
76 | 46 | * @param int|string $id
|
77 |
| - * |
78 |
| - * @return PageBlockInterface|null |
79 | 47 | */
|
80 |
| - public function getBlock($id); |
| 48 | + public function getBlock($id): ?PageBlockInterface; |
81 | 49 |
|
82 |
| - /** |
83 |
| - * @return PageInterface|null |
84 |
| - */ |
85 |
| - public function getCurrentPage(); |
| 50 | + public function getCurrentPage(): ?PageInterface; |
86 | 51 |
|
87 |
| - /** |
88 |
| - * @return void |
89 |
| - */ |
90 |
| - public function setCurrentPage(PageInterface $page); |
| 52 | + public function setCurrentPage(PageInterface $page): void; |
91 | 53 |
|
92 | 54 | /**
|
93 | 55 | * @return array<PageBlockInterface|null>
|
94 | 56 | */
|
95 |
| - public function getBlocks(); |
| 57 | + public function getBlocks(): array; |
96 | 58 |
|
97 | 59 | /**
|
98 | 60 | * @param int|string|null $page
|
99 |
| - * |
100 |
| - * @return PageInterface |
101 | 61 | */
|
102 |
| - public function getPage(SiteInterface $site, $page); |
| 62 | + public function getPage(SiteInterface $site, $page): PageInterface; |
103 | 63 | }
|
0 commit comments