Skip to content

Commit fd496b8

Browse files
committed
@return self -> static
1 parent bdf16da commit fd496b8

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/Application/PresenterFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getPresenterClass(& $name)
9393

9494
/**
9595
* Sets mapping as pairs [module => mask]
96-
* @return self
96+
* @return static
9797
*/
9898
public function setMapping(array $mapping)
9999
{

src/Application/Request.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct($name, $method = NULL, array $params = [], array $po
7373
/**
7474
* Sets the presenter name.
7575
* @param string
76-
* @return self
76+
* @return static
7777
*/
7878
public function setPresenterName($name)
7979
{
@@ -94,7 +94,7 @@ public function getPresenterName()
9494

9595
/**
9696
* Sets variables provided to the presenter.
97-
* @return self
97+
* @return static
9898
*/
9999
public function setParameters(array $params)
100100
{
@@ -126,7 +126,7 @@ public function getParameter($key)
126126

127127
/**
128128
* Sets variables provided to the presenter via POST.
129-
* @return self
129+
* @return static
130130
*/
131131
public function setPost(array $params)
132132
{
@@ -157,7 +157,7 @@ public function getPost($key = NULL)
157157

158158
/**
159159
* Sets all uploaded files.
160-
* @return self
160+
* @return static
161161
*/
162162
public function setFiles(array $files)
163163
{
@@ -179,7 +179,7 @@ public function getFiles()
179179
/**
180180
* Sets the method.
181181
* @param string|NULL
182-
* @return self
182+
* @return static
183183
*/
184184
public function setMethod($method)
185185
{
@@ -213,7 +213,7 @@ public function isMethod($method)
213213
* Sets the flag.
214214
* @param string
215215
* @param bool
216-
* @return self
216+
* @return static
217217
*/
218218
public function setFlag($flag, $value = TRUE)
219219
{

src/Application/UI/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getDestination()
5353
* Changes link parameter.
5454
* @param string
5555
* @param mixed
56-
* @return self
56+
* @return static
5757
*/
5858
public function setParameter($key, $value)
5959
{

src/Application/UI/Presenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public function getView()
408408
/**
409409
* Changes current view. Any name is allowed.
410410
* @param string
411-
* @return self
411+
* @return static
412412
*/
413413
public function setView($view)
414414
{
@@ -430,7 +430,7 @@ public function getLayout()
430430
/**
431431
* Changes or disables layout.
432432
* @param string|FALSE
433-
* @return self
433+
* @return static
434434
*/
435435
public function setLayout($layout)
436436
{

src/Bridges/ApplicationLatte/Template.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __toString()
8181
* Registers run-time filter.
8282
* @param string|NULL
8383
* @param callable
84-
* @return self
84+
* @return static
8585
*/
8686
public function addFilter($name, $callback)
8787
{
@@ -102,7 +102,7 @@ public function registerHelper($name, $callback)
102102

103103
/**
104104
* Sets translate adapter.
105-
* @return self
105+
* @return static
106106
*/
107107
public function setTranslator(Nette\Localization\ITranslator $translator = NULL)
108108
{
@@ -119,7 +119,7 @@ public function setTranslator(Nette\Localization\ITranslator $translator = NULL)
119119
/**
120120
* Sets the path to the template file.
121121
* @param string
122-
* @return self
122+
* @return static
123123
*/
124124
public function setFile($file)
125125
{
@@ -139,7 +139,7 @@ public function getFile()
139139

140140
/**
141141
* Adds new template parameter.
142-
* @return self
142+
* @return static
143143
*/
144144
public function add($name, $value)
145145
{
@@ -154,7 +154,7 @@ public function add($name, $value)
154154
/**
155155
* Sets all parameters.
156156
* @param array
157-
* @return self
157+
* @return static
158158
*/
159159
public function setParameters(array $params)
160160
{

0 commit comments

Comments
 (0)