Skip to content

Commit a01c1e1

Browse files
committed
@return self -> static
1 parent b2e321a commit a01c1e1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/Database/DriverException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DriverException extends \PDOException
1818

1919

2020
/**
21-
* @return self
21+
* @return static
2222
*/
2323
public static function from(\PDOException $src)
2424
{

src/Database/Table/GroupedSelection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(Context $context, IConventions $conventions, $tableN
5252
* Sets active group.
5353
* @internal
5454
* @param int primary key of grouped rows
55-
* @return self
55+
* @return static
5656
*/
5757
public function setActive($active)
5858
{

src/Database/Table/Selection.php

+13-13
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function getPrimarySequence()
147147

148148
/**
149149
* @param string
150-
* @return self
150+
* @return static
151151
*/
152152
public function setPrimarySequence($sequence)
153153
{
@@ -274,7 +274,7 @@ public function fetchAssoc($path)
274274
/**
275275
* Adds select clause, more calls appends to the end.
276276
* @param string for example "column, MD5(column) AS column_md5"
277-
* @return self
277+
* @return static
278278
*/
279279
public function select($columns, ...$params)
280280
{
@@ -287,7 +287,7 @@ public function select($columns, ...$params)
287287
/**
288288
* Adds condition for primary key.
289289
* @param mixed
290-
* @return self
290+
* @return static
291291
*/
292292
public function wherePrimary($key)
293293
{
@@ -313,7 +313,7 @@ public function wherePrimary($key)
313313
* Adds where condition, more calls appends with AND.
314314
* @param string condition possibly containing ?
315315
* @param mixed
316-
* @return self
316+
* @return static
317317
*/
318318
public function where($condition, ...$params)
319319
{
@@ -327,7 +327,7 @@ public function where($condition, ...$params)
327327
* @param string table chain or table alias for which you need additional left join condition
328328
* @param string condition possibly containing ?
329329
* @param mixed
330-
* @return self
330+
* @return static
331331
*/
332332
public function joinWhere($tableChain, $condition, ...$params)
333333
{
@@ -364,7 +364,7 @@ protected function condition($condition, array $params, $tableChain = NULL)
364364
* Adds where condition using the OR operator between parameters.
365365
* More calls appends with AND.
366366
* @param array ['column1' => 1, 'column2 > ?' => 2, 'full condition']
367-
* @return self
367+
* @return static
368368
* @throws \Nette\InvalidArgumentException
369369
*/
370370
public function whereOr(array $parameters)
@@ -397,7 +397,7 @@ public function whereOr(array $parameters)
397397
/**
398398
* Adds order clause, more calls appends to the end.
399399
* @param string for example 'column1, column2 DESC'
400-
* @return self
400+
* @return static
401401
*/
402402
public function order($columns, ...$params)
403403
{
@@ -411,7 +411,7 @@ public function order($columns, ...$params)
411411
* Sets limit clause, more calls rewrite old values.
412412
* @param int
413413
* @param int
414-
* @return self
414+
* @return static
415415
*/
416416
public function limit($limit, $offset = NULL)
417417
{
@@ -425,7 +425,7 @@ public function limit($limit, $offset = NULL)
425425
* Sets offset using page number, more calls rewrite old values.
426426
* @param int
427427
* @param int
428-
* @return self
428+
* @return static
429429
*/
430430
public function page($page, $itemsPerPage, & $numOfPages = NULL)
431431
{
@@ -442,7 +442,7 @@ public function page($page, $itemsPerPage, & $numOfPages = NULL)
442442
/**
443443
* Sets group clause, more calls rewrite old value.
444444
* @param string
445-
* @return self
445+
* @return static
446446
*/
447447
public function group($columns, ...$params)
448448
{
@@ -455,7 +455,7 @@ public function group($columns, ...$params)
455455
/**
456456
* Sets having clause, more calls rewrite old value.
457457
* @param string
458-
* @return self
458+
* @return static
459459
*/
460460
public function having($having, ...$params)
461461
{
@@ -469,7 +469,7 @@ public function having($having, ...$params)
469469
* Aliases table. Example ':book:book_tag.tag', 'tg'
470470
* @param string
471471
* @param string
472-
* @return self
472+
* @return static
473473
*/
474474
public function alias($tableChain, $alias)
475475
{
@@ -656,7 +656,7 @@ protected function saveCacheState()
656656

657657
/**
658658
* Returns Selection parent for caching.
659-
* @return self
659+
* @return static
660660
*/
661661
protected function getRefTable(& $refPath)
662662
{

0 commit comments

Comments
 (0)