1
0
mirror of synced 2025-02-02 21:41:45 +03:00

phpDoc and type hint changes.

This commit is contained in:
Mathew Davies 2017-06-19 09:00:00 +01:00 committed by Luís Cobucci
parent e4847534a4
commit 966f9a84c2
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C
6 changed files with 22 additions and 27 deletions

View File

@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
/** /**
* "AVG" "(" ["DISTINCT"] StringPrimary ")" * "AVG" "(" ["DISTINCT"] StringPrimary ")"
* *
* @link www.doctrine-project.org * @since 2.6
* @since 2.0
* @author Mathew Davies <thepixeldeveloper@icloud.com> * @author Mathew Davies <thepixeldeveloper@icloud.com>
*/ */
class AvgFunction extends FunctionNode class AvgFunction extends FunctionNode
@ -35,12 +34,12 @@ class AvgFunction extends FunctionNode
/** /**
* @var AggregateExpression * @var AggregateExpression
*/ */
public $aggregateExpression; private $aggregateExpression;
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function getSql(SqlWalker $sqlWalker) public function getSql(SqlWalker $sqlWalker): string
{ {
return $this->aggregateExpression->dispatch($sqlWalker); return $this->aggregateExpression->dispatch($sqlWalker);
} }
@ -48,7 +47,7 @@ class AvgFunction extends FunctionNode
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function parse(Parser $parser) public function parse(Parser $parser): void
{ {
$this->aggregateExpression = $parser->AggregateExpression(); $this->aggregateExpression = $parser->AggregateExpression();
} }

View File

@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
/** /**
* "COUNT" "(" ["DISTINCT"] StringPrimary ")" * "COUNT" "(" ["DISTINCT"] StringPrimary ")"
* *
* @link www.doctrine-project.org * @since 2.6
* @since 2.0
* @author Mathew Davies <thepixeldeveloper@icloud.com> * @author Mathew Davies <thepixeldeveloper@icloud.com>
*/ */
class CountFunction extends FunctionNode class CountFunction extends FunctionNode
@ -35,12 +34,12 @@ class CountFunction extends FunctionNode
/** /**
* @var AggregateExpression * @var AggregateExpression
*/ */
public $aggregateExpression; private $aggregateExpression;
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function getSql(SqlWalker $sqlWalker) public function getSql(SqlWalker $sqlWalker): string
{ {
return $this->aggregateExpression->dispatch($sqlWalker); return $this->aggregateExpression->dispatch($sqlWalker);
} }
@ -48,7 +47,7 @@ class CountFunction extends FunctionNode
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function parse(Parser $parser) public function parse(Parser $parser): void
{ {
$this->aggregateExpression = $parser->AggregateExpression(); $this->aggregateExpression = $parser->AggregateExpression();
} }

View File

@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
/** /**
* "MAX" "(" ["DISTINCT"] StringPrimary ")" * "MAX" "(" ["DISTINCT"] StringPrimary ")"
* *
* @link www.doctrine-project.org * @since 2.6
* @since 2.0
* @author Mathew Davies <thepixeldeveloper@icloud.com> * @author Mathew Davies <thepixeldeveloper@icloud.com>
*/ */
class MaxFunction extends FunctionNode class MaxFunction extends FunctionNode
@ -35,12 +34,12 @@ class MaxFunction extends FunctionNode
/** /**
* @var AggregateExpression * @var AggregateExpression
*/ */
public $aggregateExpression; private $aggregateExpression;
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function getSql(SqlWalker $sqlWalker) public function getSql(SqlWalker $sqlWalker): string
{ {
return $this->aggregateExpression->dispatch($sqlWalker); return $this->aggregateExpression->dispatch($sqlWalker);
} }
@ -48,7 +47,7 @@ class MaxFunction extends FunctionNode
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function parse(Parser $parser) public function parse(Parser $parser): void
{ {
$this->aggregateExpression = $parser->AggregateExpression(); $this->aggregateExpression = $parser->AggregateExpression();
} }

View File

@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
/** /**
* "MIN" "(" ["DISTINCT"] StringPrimary ")" * "MIN" "(" ["DISTINCT"] StringPrimary ")"
* *
* @link www.doctrine-project.org * @since 2.6
* @since 2.0
* @author Mathew Davies <thepixeldeveloper@icloud.com> * @author Mathew Davies <thepixeldeveloper@icloud.com>
*/ */
class MinFunction extends FunctionNode class MinFunction extends FunctionNode
@ -35,12 +34,12 @@ class MinFunction extends FunctionNode
/** /**
* @var AggregateExpression * @var AggregateExpression
*/ */
public $aggregateExpression; private $aggregateExpression;
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function getSql(SqlWalker $sqlWalker) public function getSql(SqlWalker $sqlWalker): string
{ {
return $this->aggregateExpression->dispatch($sqlWalker); return $this->aggregateExpression->dispatch($sqlWalker);
} }
@ -48,7 +47,7 @@ class MinFunction extends FunctionNode
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function parse(Parser $parser) public function parse(Parser $parser): void
{ {
$this->aggregateExpression = $parser->AggregateExpression(); $this->aggregateExpression = $parser->AggregateExpression();
} }

View File

@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
/** /**
* "SUM" "(" ["DISTINCT"] StringPrimary ")" * "SUM" "(" ["DISTINCT"] StringPrimary ")"
* *
* @link www.doctrine-project.org * @since 2.6
* @since 2.0
* @author Mathew Davies <thepixeldeveloper@icloud.com> * @author Mathew Davies <thepixeldeveloper@icloud.com>
*/ */
class SumFunction extends FunctionNode class SumFunction extends FunctionNode
@ -35,12 +34,12 @@ class SumFunction extends FunctionNode
/** /**
* @var AggregateExpression * @var AggregateExpression
*/ */
public $aggregateExpression; private $aggregateExpression;
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function getSql(SqlWalker $sqlWalker) public function getSql(SqlWalker $sqlWalker): string
{ {
return $this->aggregateExpression->dispatch($sqlWalker); return $this->aggregateExpression->dispatch($sqlWalker);
} }
@ -48,7 +47,7 @@ class SumFunction extends FunctionNode
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function parse(Parser $parser) public function parse(Parser $parser): void
{ {
$this->aggregateExpression = $parser->AggregateExpression(); $this->aggregateExpression = $parser->AggregateExpression();
} }

View File

@ -94,12 +94,12 @@ class CustomCount extends FunctionNode
*/ */
private $aggregateExpression; private $aggregateExpression;
public function parse(Parser $parser) public function parse(Parser $parser): void
{ {
$this->aggregateExpression = $parser->AggregateExpression(); $this->aggregateExpression = $parser->AggregateExpression();
} }
public function getSql(SqlWalker $sqlWalker) public function getSql(SqlWalker $sqlWalker): string
{ {
return $this->aggregateExpression->dispatch($sqlWalker); return $this->aggregateExpression->dispatch($sqlWalker);
} }