@@ -69,28 +69,28 @@ public function __construct(
6969 $ this ->isTemplateStart = $ isTemplateStart ;
7070 }
7171
72- public function getSummary () : string
72+ public function getSummary (): string
7373 {
7474 return $ this ->summary ;
7575 }
7676
77- public function getDescription () : DocBlock \Description
77+ public function getDescription (): DocBlock \Description
7878 {
7979 return $ this ->description ;
8080 }
8181
8282 /**
8383 * Returns the current context.
8484 */
85- public function getContext () : ?Types \Context
85+ public function getContext (): ?Types \Context
8686 {
8787 return $ this ->context ;
8888 }
8989
9090 /**
9191 * Returns the current location.
9292 */
93- public function getLocation () : ?Location
93+ public function getLocation (): ?Location
9494 {
9595 return $ this ->location ;
9696 }
@@ -114,7 +114,7 @@ public function getLocation() : ?Location
114114 *
115115 * @see self::isTemplateEnd() for the check whether a closing marker was provided.
116116 */
117- public function isTemplateStart () : bool
117+ public function isTemplateStart (): bool
118118 {
119119 return $ this ->isTemplateStart ;
120120 }
@@ -124,7 +124,7 @@ public function isTemplateStart() : bool
124124 *
125125 * @see self::isTemplateStart() for a more complete description of the Docblock Template functionality.
126126 */
127- public function isTemplateEnd () : bool
127+ public function isTemplateEnd (): bool
128128 {
129129 return $ this ->isTemplateEnd ;
130130 }
@@ -134,7 +134,7 @@ public function isTemplateEnd() : bool
134134 *
135135 * @return Tag[]
136136 */
137- public function getTags () : array
137+ public function getTags (): array
138138 {
139139 return $ this ->tags ;
140140 }
@@ -147,7 +147,7 @@ public function getTags() : array
147147 *
148148 * @return Tag[]
149149 */
150- public function getTagsByName (string $ name ) : array
150+ public function getTagsByName (string $ name ): array
151151 {
152152 $ result = [];
153153
@@ -170,7 +170,7 @@ public function getTagsByName(string $name) : array
170170 *
171171 * @return TagWithType[]
172172 */
173- public function getTagsWithTypeByName (string $ name ) : array
173+ public function getTagsWithTypeByName (string $ name ): array
174174 {
175175 $ result = [];
176176
@@ -190,7 +190,7 @@ public function getTagsWithTypeByName(string $name) : array
190190 *
191191 * @param string $name Tag name to check for.
192192 */
193- public function hasTag (string $ name ) : bool
193+ public function hasTag (string $ name ): bool
194194 {
195195 foreach ($ this ->getTags () as $ tag ) {
196196 if ($ tag ->getName () === $ name ) {
@@ -206,7 +206,7 @@ public function hasTag(string $name) : bool
206206 *
207207 * @param Tag $tagToRemove The tag to remove.
208208 */
209- public function removeTag (Tag $ tagToRemove ) : void
209+ public function removeTag (Tag $ tagToRemove ): void
210210 {
211211 foreach ($ this ->tags as $ key => $ tag ) {
212212 if ($ tag === $ tagToRemove ) {
@@ -221,7 +221,7 @@ public function removeTag(Tag $tagToRemove) : void
221221 *
222222 * @param Tag $tag The tag to add.
223223 */
224- private function addTag (Tag $ tag ) : void
224+ private function addTag (Tag $ tag ): void
225225 {
226226 $ this ->tags [] = $ tag ;
227227 }
0 commit comments