Skip to content

Commit

Permalink
@return self -> static
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 12, 2016
1 parent b2e321a commit a01c1e1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Database/DriverException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DriverException extends \PDOException


/**
* @return self
* @return static
*/
public static function from(\PDOException $src)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Table/GroupedSelection.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(Context $context, IConventions $conventions, $tableN
* Sets active group.
* @internal
* @param int primary key of grouped rows
* @return self
* @return static
*/
public function setActive($active)
{
Expand Down
26 changes: 13 additions & 13 deletions src/Database/Table/Selection.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function getPrimarySequence()

/**
* @param string
* @return self
* @return static
*/
public function setPrimarySequence($sequence)
{
Expand Down Expand Up @@ -274,7 +274,7 @@ public function fetchAssoc($path)
/**
* Adds select clause, more calls appends to the end.
* @param string for example "column, MD5(column) AS column_md5"
* @return self
* @return static
*/
public function select($columns, ...$params)
{
Expand All @@ -287,7 +287,7 @@ public function select($columns, ...$params)
/**
* Adds condition for primary key.
* @param mixed
* @return self
* @return static
*/
public function wherePrimary($key)
{
Expand All @@ -313,7 +313,7 @@ public function wherePrimary($key)
* Adds where condition, more calls appends with AND.
* @param string condition possibly containing ?
* @param mixed
* @return self
* @return static
*/
public function where($condition, ...$params)
{
Expand All @@ -327,7 +327,7 @@ public function where($condition, ...$params)
* @param string table chain or table alias for which you need additional left join condition
* @param string condition possibly containing ?
* @param mixed
* @return self
* @return static
*/
public function joinWhere($tableChain, $condition, ...$params)
{
Expand Down Expand Up @@ -364,7 +364,7 @@ protected function condition($condition, array $params, $tableChain = NULL)
* Adds where condition using the OR operator between parameters.
* More calls appends with AND.
* @param array ['column1' => 1, 'column2 > ?' => 2, 'full condition']
* @return self
* @return static
* @throws \Nette\InvalidArgumentException
*/
public function whereOr(array $parameters)
Expand Down Expand Up @@ -397,7 +397,7 @@ public function whereOr(array $parameters)
/**
* Adds order clause, more calls appends to the end.
* @param string for example 'column1, column2 DESC'
* @return self
* @return static
*/
public function order($columns, ...$params)
{
Expand All @@ -411,7 +411,7 @@ public function order($columns, ...$params)
* Sets limit clause, more calls rewrite old values.
* @param int
* @param int
* @return self
* @return static
*/
public function limit($limit, $offset = NULL)
{
Expand All @@ -425,7 +425,7 @@ public function limit($limit, $offset = NULL)
* Sets offset using page number, more calls rewrite old values.
* @param int
* @param int
* @return self
* @return static
*/
public function page($page, $itemsPerPage, & $numOfPages = NULL)
{
Expand All @@ -442,7 +442,7 @@ public function page($page, $itemsPerPage, & $numOfPages = NULL)
/**
* Sets group clause, more calls rewrite old value.
* @param string
* @return self
* @return static
*/
public function group($columns, ...$params)
{
Expand All @@ -455,7 +455,7 @@ public function group($columns, ...$params)
/**
* Sets having clause, more calls rewrite old value.
* @param string
* @return self
* @return static
*/
public function having($having, ...$params)
{
Expand All @@ -469,7 +469,7 @@ public function having($having, ...$params)
* Aliases table. Example ':book:book_tag.tag', 'tg'
* @param string
* @param string
* @return self
* @return static
*/
public function alias($tableChain, $alias)
{
Expand Down Expand Up @@ -656,7 +656,7 @@ protected function saveCacheState()

/**
* Returns Selection parent for caching.
* @return self
* @return static
*/
protected function getRefTable(& $refPath)
{
Expand Down

0 comments on commit a01c1e1

Please sign in to comment.