@@ -72,9 +72,8 @@ public function __construct(
7272
7373 /**
7474 * Sets the presenter name.
75- * @return static
7675 */
77- public function setPresenterName (string $ name )
76+ public function setPresenterName (string $ name ): static
7877 {
7978 $ this ->name = $ name ;
8079 return $ this ;
@@ -92,9 +91,8 @@ public function getPresenterName(): string
9291
9392 /**
9493 * Sets variables provided to the presenter.
95- * @return static
9694 */
97- public function setParameters (array $ params )
95+ public function setParameters (array $ params ): static
9896 {
9997 $ this ->params = $ params ;
10098 return $ this ;
@@ -112,19 +110,17 @@ public function getParameters(): array
112110
113111 /**
114112 * Returns a parameter provided to the presenter.
115- * @return mixed
116113 */
117- public function getParameter (string $ key )
114+ public function getParameter (string $ key ): mixed
118115 {
119116 return $ this ->params [$ key ] ?? null ;
120117 }
121118
122119
123120 /**
124121 * Sets variables provided to the presenter via POST.
125- * @return static
126122 */
127- public function setPost (array $ params )
123+ public function setPost (array $ params ): static
128124 {
129125 $ this ->post = $ params ;
130126 return $ this ;
@@ -134,9 +130,8 @@ public function setPost(array $params)
134130 /**
135131 * Returns a variable provided to the presenter via POST.
136132 * If no key is passed, returns the entire array.
137- * @return mixed
138133 */
139- public function getPost (string $ key = null )
134+ public function getPost (string $ key = null ): mixed
140135 {
141136 return func_num_args () === 0
142137 ? $ this ->post
@@ -146,9 +141,8 @@ public function getPost(string $key = null)
146141
147142 /**
148143 * Sets all uploaded files.
149- * @return static
150144 */
151- public function setFiles (array $ files )
145+ public function setFiles (array $ files ): static
152146 {
153147 $ this ->files = $ files ;
154148 return $ this ;
@@ -166,9 +160,8 @@ public function getFiles(): array
166160
167161 /**
168162 * Sets the method.
169- * @return static
170163 */
171- public function setMethod (?string $ method )
164+ public function setMethod (?string $ method ): static
172165 {
173166 $ this ->method = $ method ;
174167 return $ this ;
@@ -195,9 +188,8 @@ public function isMethod(string $method): bool
195188
196189 /**
197190 * Sets the flag.
198- * @return static
199191 */
200- public function setFlag (string $ flag , bool $ value = true )
192+ public function setFlag (string $ flag , bool $ value = true ): static
201193 {
202194 $ this ->flags [$ flag ] = $ value ;
203195 return $ this ;
0 commit comments