@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @param Route $route |
20 | 20 | * @return RouteAwareInterface|RouteAwareTrait |
21 | 21 | */ |
22 | - public function addRoute(Route $route) |
|
22 | + public function addRoute (Route $route) |
|
23 | 23 | { |
24 | 24 | $this->routes->add($route); |
25 | 25 | return $this; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param Route $route |
30 | 30 | * @return RouteAwareInterface|RouteAwareTrait |
31 | 31 | */ |
32 | - public function removeRoute(Route $route) |
|
32 | + public function removeRoute (Route $route) |
|
33 | 33 | { |
34 | 34 | $this->routes->removeElement($route); |
35 | 35 | return $this; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | private $redirect; |
49 | 49 | |
50 | - public function __construct(?string $route = null) |
|
50 | + public function __construct (?string $route = null) |
|
51 | 51 | { |
52 | 52 | $this->route = $route ?? Uuid::uuid4()->getHex(); |
53 | 53 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * @return string |
57 | 57 | */ |
58 | - public function getRoute(): string |
|
58 | + public function getRoute (): string |
|
59 | 59 | { |
60 | 60 | return $this->route; |
61 | 61 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * @param string $route |
65 | 65 | */ |
66 | - public function setRoute(string $route): void |
|
66 | + public function setRoute (string $route): void |
|
67 | 67 | { |
68 | 68 | $this->route = $route; |
69 | 69 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * @return null|AbstractContent |
73 | 73 | */ |
74 | - public function getContent(): ?AbstractContent |
|
74 | + public function getContent (): ?AbstractContent |
|
75 | 75 | { |
76 | 76 | return $this->content; |
77 | 77 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * @param null|AbstractContent $content |
81 | 81 | */ |
82 | - public function setContent(?AbstractContent $content): void |
|
82 | + public function setContent (?AbstractContent $content): void |
|
83 | 83 | { |
84 | 84 | $this->content = $content; |
85 | 85 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | /** |
88 | 88 | * @return null|Route |
89 | 89 | */ |
90 | - public function getRedirect(): ?Route |
|
90 | + public function getRedirect (): ?Route |
|
91 | 91 | { |
92 | 92 | return $this->redirect; |
93 | 93 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * @param null|Route $redirect |
97 | 97 | */ |
98 | - public function setRedirect(?Route $redirect): void |
|
98 | + public function setRedirect (?Route $redirect): void |
|
99 | 99 | { |
100 | 100 | $this->redirect = $redirect; |
101 | 101 | } |
@@ -38,23 +38,23 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected $items; |
40 | 40 | |
41 | - public function __construct() |
|
41 | + public function __construct () |
|
42 | 42 | { |
43 | 43 | $this->id = Uuid::uuid4()->getHex(); |
44 | 44 | $this->items = new ArrayCollection; |
45 | 45 | } |
46 | 46 | |
47 | - public function getId(): string |
|
47 | + public function getId (): string |
|
48 | 48 | { |
49 | 49 | return $this->id; |
50 | 50 | } |
51 | 51 | |
52 | - public function getItems() |
|
52 | + public function getItems () |
|
53 | 53 | { |
54 | 54 | return $this->items; |
55 | 55 | } |
56 | 56 | |
57 | - public function setItems(array $items): AbstractNavigation |
|
57 | + public function setItems (array $items): AbstractNavigation |
|
58 | 58 | { |
59 | 59 | $this->items = new ArrayCollection; |
60 | 60 | foreach ($items as $item) { |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | return $this; |
64 | 64 | } |
65 | 65 | |
66 | - public function addItem(AbstractNavigationItem $navigationItem): AbstractNavigation |
|
66 | + public function addItem (AbstractNavigationItem $navigationItem): AbstractNavigation |
|
67 | 67 | { |
68 | 68 | $this->items->add($navigationItem); |
69 | 69 | return $this; |
70 | 70 | } |
71 | 71 | |
72 | - public function removeItem(AbstractNavigationItem $navigationItem): AbstractNavigation |
|
72 | + public function removeItem (AbstractNavigationItem $navigationItem): AbstractNavigation |
|
73 | 73 | { |
74 | 74 | $this->items->removeElement($navigationItem); |
75 | 75 | return $this; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * AbstractNavigationItem constructor. |
76 | 76 | */ |
77 | - public function __construct() |
|
77 | + public function __construct () |
|
78 | 78 | { |
79 | 79 | $this->id = Uuid::uuid4()->getHex(); |
80 | 80 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * @return string |
84 | 84 | */ |
85 | - public function getId(): string |
|
85 | + public function getId (): string |
|
86 | 86 | { |
87 | 87 | return $this->id; |
88 | 88 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | /** |
91 | 91 | * @return AbstractNavigation |
92 | 92 | */ |
93 | - public function getNavigation(): AbstractNavigation |
|
93 | + public function getNavigation (): AbstractNavigation |
|
94 | 94 | { |
95 | 95 | return $this->navigation; |
96 | 96 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param AbstractNavigation $navigation |
100 | 100 | * @param bool|null $sortLast |
101 | 101 | */ |
102 | - public function setNavigation(AbstractNavigation $navigation, ?bool $sortLast = true): void |
|
102 | + public function setNavigation (AbstractNavigation $navigation, ?bool $sortLast = true): void |
|
103 | 103 | { |
104 | 104 | $this->navigation = $navigation; |
105 | 105 | if (null === $this->sort || $sortLast !== null) { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * @return string |
113 | 113 | */ |
114 | - public function getLabel(): string |
|
114 | + public function getLabel (): string |
|
115 | 115 | { |
116 | 116 | return $this->label; |
117 | 117 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @param string $label |
121 | 121 | * @return AbstractNavigationItem |
122 | 122 | */ |
123 | - public function setLabel(string $label): AbstractNavigationItem |
|
123 | + public function setLabel (string $label): AbstractNavigationItem |
|
124 | 124 | { |
125 | 125 | $this->label = $label; |
126 | 126 | return $this; |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * @return null|Route |
131 | 131 | */ |
132 | - public function getRoute(): ?Route |
|
132 | + public function getRoute (): ?Route |
|
133 | 133 | { |
134 | 134 | return $this->route; |
135 | 135 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * @param null|Route $route |
139 | 139 | * @return AbstractNavigationItem |
140 | 140 | */ |
141 | - public function setRoute(?Route $route): AbstractNavigationItem |
|
141 | + public function setRoute (?Route $route): AbstractNavigationItem |
|
142 | 142 | { |
143 | 143 | $this->route = $route; |
144 | 144 | return $this; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * @return null|string |
149 | 149 | */ |
150 | - public function getFragment(): ?string |
|
150 | + public function getFragment (): ?string |
|
151 | 151 | { |
152 | 152 | return $this->fragment; |
153 | 153 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @param null|string $fragment |
157 | 157 | * @return AbstractNavigationItem |
158 | 158 | */ |
159 | - public function setFragment(?string $fragment): AbstractNavigationItem |
|
159 | + public function setFragment (?string $fragment): AbstractNavigationItem |
|
160 | 160 | { |
161 | 161 | $this->fragment = $fragment; |
162 | 162 | return $this; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | /** |
166 | 166 | * @return null|AbstractNavigation |
167 | 167 | */ |
168 | - public function getChild(): ?AbstractNavigation |
|
168 | + public function getChild (): ?AbstractNavigation |
|
169 | 169 | { |
170 | 170 | return $this->child; |
171 | 171 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @param null|AbstractNavigation $child |
175 | 175 | * @return AbstractNavigationItem |
176 | 176 | */ |
177 | - public function setChild(?AbstractNavigation $child): AbstractNavigationItem |
|
177 | + public function setChild (?AbstractNavigation $child): AbstractNavigationItem |
|
178 | 178 | { |
179 | 179 | $this->child = $child; |
180 | 180 | return $this; |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | /** |
184 | 184 | * @return \Doctrine\Common\Collections\ArrayCollection|Collection|\Silverback\ApiComponentBundle\Entity\SortableInterface[]|AbstractNavigationItem[] |
185 | 185 | */ |
186 | - public function getSortCollection(): Collection |
|
186 | + public function getSortCollection (): Collection |
|
187 | 187 | { |
188 | 188 | return $this->navigation->getItems(); |
189 | 189 | } |
@@ -13,22 +13,22 @@ |
||
13 | 13 | /** |
14 | 14 | * @return string |
15 | 15 | */ |
16 | - public function getId(): string; |
|
16 | + public function getId (): string; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @return Collection|AbstractNavigationItem[] |
20 | 20 | */ |
21 | - public function getItems(); |
|
21 | + public function getItems (); |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @param AbstractNavigationItem $navigationItem |
25 | 25 | * @return AbstractNavigation |
26 | 26 | */ |
27 | - public function addItem(AbstractNavigationItem $navigationItem): AbstractNavigation; |
|
27 | + public function addItem (AbstractNavigationItem $navigationItem): AbstractNavigation; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @param AbstractNavigationItem $navigationItem |
31 | 31 | * @return AbstractNavigation |
32 | 32 | */ |
33 | - public function removeItem(AbstractNavigationItem $navigationItem): AbstractNavigation; |
|
33 | + public function removeItem (AbstractNavigationItem $navigationItem): AbstractNavigation; |
|
34 | 34 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * @return string |
53 | 53 | */ |
54 | - public function getTitle(): string |
|
54 | + public function getTitle (): string |
|
55 | 55 | { |
56 | 56 | return $this->title; |
57 | 57 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * @param string $title |
61 | 61 | */ |
62 | - public function setTitle(string $title): void |
|
62 | + public function setTitle (string $title): void |
|
63 | 63 | { |
64 | 64 | $this->title = $title; |
65 | 65 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * @return string |
69 | 69 | */ |
70 | - public function getMetaDescription(): string |
|
70 | + public function getMetaDescription (): string |
|
71 | 71 | { |
72 | 72 | return $this->metaDescription; |
73 | 73 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * @param string $metaDescription |
77 | 77 | */ |
78 | - public function setMetaDescription(string $metaDescription): void |
|
78 | + public function setMetaDescription (string $metaDescription): void |
|
79 | 79 | { |
80 | 80 | $this->metaDescription = $metaDescription; |
81 | 81 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * @return null|Page |
85 | 85 | */ |
86 | - public function getParent(): ?Page |
|
86 | + public function getParent (): ?Page |
|
87 | 87 | { |
88 | 88 | return $this->parent; |
89 | 89 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * @param null|Page $parent |
93 | 93 | */ |
94 | - public function setParent(?Page $parent): void |
|
94 | + public function setParent (?Page $parent): void |
|
95 | 95 | { |
96 | 96 | $this->parent = $parent; |
97 | 97 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * @return Layout|null |
101 | 101 | */ |
102 | - public function getLayout(): ?Layout |
|
102 | + public function getLayout (): ?Layout |
|
103 | 103 | { |
104 | 104 | return $this->layout; |
105 | 105 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * @param Layout|null $layout |
109 | 109 | */ |
110 | - public function setLayout(?Layout $layout): void |
|
110 | + public function setLayout (?Layout $layout): void |
|
111 | 111 | { |
112 | 112 | $this->layout = $layout; |
113 | 113 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected $components; |
44 | 44 | |
45 | - public function __construct() |
|
45 | + public function __construct () |
|
46 | 46 | { |
47 | 47 | $this->routes = new ArrayCollection; |
48 | 48 | $this->id = Uuid::uuid4()->getHex(); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @return string |
54 | 54 | */ |
55 | - public function getId(): string |
|
55 | + public function getId (): string |
|
56 | 56 | { |
57 | 57 | return $this->id; |
58 | 58 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * @return Collection|ComponentLocation[] |
62 | 62 | */ |
63 | - public function getComponents(): Collection |
|
63 | + public function getComponents (): Collection |
|
64 | 64 | { |
65 | 65 | return $this->components; |
66 | 66 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @param ComponentLocation $component |
70 | 70 | * @return AbstractContent |
71 | 71 | */ |
72 | - public function addComponent(ComponentLocation $component): AbstractContent |
|
72 | + public function addComponent (ComponentLocation $component): AbstractContent |
|
73 | 73 | { |
74 | 74 | $this->components->add($component); |
75 | 75 | return $this; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @param ComponentLocation $component |
80 | 80 | * @return AbstractContent |
81 | 81 | */ |
82 | - public function removeComponent(ComponentLocation $component): AbstractContent |
|
82 | + public function removeComponent (ComponentLocation $component): AbstractContent |
|
83 | 83 | { |
84 | 84 | $this->components->removeElement($component); |
85 | 85 | return $this; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | private $component; |
53 | 53 | |
54 | - public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
54 | + public static function loadValidatorMetadata (ClassMetadata $metadata) |
|
55 | 55 | { |
56 | 56 | $metadata->addPropertyConstraint( |
57 | 57 | 'content', |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @param null|AbstractContent $newContent |
69 | 69 | * @param null|AbstractComponent $newComponent |
70 | 70 | */ |
71 | - public function __construct( |
|
71 | + public function __construct ( |
|
72 | 72 | ?AbstractContent $newContent = null, |
73 | 73 | ?AbstractComponent $newComponent = null |
74 | 74 | ) { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * @return string |
86 | 86 | */ |
87 | - public function getId(): string |
|
87 | + public function getId (): string |
|
88 | 88 | { |
89 | 89 | return $this->id; |
90 | 90 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | /** |
93 | 93 | * @return AbstractContent |
94 | 94 | */ |
95 | - public function getContent(): AbstractContent |
|
95 | + public function getContent (): AbstractContent |
|
96 | 96 | { |
97 | 97 | return $this->content; |
98 | 98 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @param AbstractContent $content |
102 | 102 | * @param bool|null $sortLast |
103 | 103 | */ |
104 | - public function setContent(AbstractContent $content, ?bool $sortLast = true): void |
|
104 | + public function setContent (AbstractContent $content, ?bool $sortLast = true): void |
|
105 | 105 | { |
106 | 106 | $this->content = $content; |
107 | 107 | if (null === $this->sort || $sortLast !== null) { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * @return AbstractComponent |
114 | 114 | */ |
115 | - public function getComponent(): AbstractComponent |
|
115 | + public function getComponent (): AbstractComponent |
|
116 | 116 | { |
117 | 117 | return $this->component; |
118 | 118 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * @param AbstractComponent $component |
122 | 122 | */ |
123 | - public function setComponent(AbstractComponent $component): void |
|
123 | + public function setComponent (AbstractComponent $component): void |
|
124 | 124 | { |
125 | 125 | $this->component = $component; |
126 | 126 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * @return Collection|AbstractFeatureItem[] |
130 | 130 | */ |
131 | - public function getSortCollection(): Collection |
|
131 | + public function getSortCollection (): Collection |
|
132 | 132 | { |
133 | 133 | return $this->content ? $this->content->getComponents() : new ArrayCollection; |
134 | 134 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | protected $parent; |
29 | 29 | |
30 | - public function __construct() |
|
30 | + public function __construct () |
|
31 | 31 | { |
32 | 32 | $this->validComponents = new ArrayCollection; |
33 | 33 | parent::__construct(); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * @return AbstractComponent |
39 | 39 | */ |
40 | - public function getParent(): AbstractComponent |
|
40 | + public function getParent (): AbstractComponent |
|
41 | 41 | { |
42 | 42 | return $this->parent; |
43 | 43 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @param AbstractComponent $parent |
47 | 47 | * @param bool|null $cascadeValidComponent |
48 | 48 | */ |
49 | - public function setParent(AbstractComponent $parent, ?bool $cascadeValidComponent = null): void |
|
49 | + public function setParent (AbstractComponent $parent, ?bool $cascadeValidComponent = null): void |
|
50 | 50 | { |
51 | 51 | $this->parent = $parent; |
52 | 52 | if ($cascadeValidComponent !== false) { |