phpDoc and type hint changes.
This commit is contained in:
parent
e4847534a4
commit
966f9a84c2
@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
|
||||
/**
|
||||
* "AVG" "(" ["DISTINCT"] StringPrimary ")"
|
||||
*
|
||||
* @link www.doctrine-project.org
|
||||
* @since 2.0
|
||||
* @since 2.6
|
||||
* @author Mathew Davies <thepixeldeveloper@icloud.com>
|
||||
*/
|
||||
class AvgFunction extends FunctionNode
|
||||
@ -35,12 +34,12 @@ class AvgFunction extends FunctionNode
|
||||
/**
|
||||
* @var AggregateExpression
|
||||
*/
|
||||
public $aggregateExpression;
|
||||
private $aggregateExpression;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getSql(SqlWalker $sqlWalker)
|
||||
public function getSql(SqlWalker $sqlWalker): string
|
||||
{
|
||||
return $this->aggregateExpression->dispatch($sqlWalker);
|
||||
}
|
||||
@ -48,7 +47,7 @@ class AvgFunction extends FunctionNode
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function parse(Parser $parser)
|
||||
public function parse(Parser $parser): void
|
||||
{
|
||||
$this->aggregateExpression = $parser->AggregateExpression();
|
||||
}
|
||||
|
@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
|
||||
/**
|
||||
* "COUNT" "(" ["DISTINCT"] StringPrimary ")"
|
||||
*
|
||||
* @link www.doctrine-project.org
|
||||
* @since 2.0
|
||||
* @since 2.6
|
||||
* @author Mathew Davies <thepixeldeveloper@icloud.com>
|
||||
*/
|
||||
class CountFunction extends FunctionNode
|
||||
@ -35,12 +34,12 @@ class CountFunction extends FunctionNode
|
||||
/**
|
||||
* @var AggregateExpression
|
||||
*/
|
||||
public $aggregateExpression;
|
||||
private $aggregateExpression;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getSql(SqlWalker $sqlWalker)
|
||||
public function getSql(SqlWalker $sqlWalker): string
|
||||
{
|
||||
return $this->aggregateExpression->dispatch($sqlWalker);
|
||||
}
|
||||
@ -48,7 +47,7 @@ class CountFunction extends FunctionNode
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function parse(Parser $parser)
|
||||
public function parse(Parser $parser): void
|
||||
{
|
||||
$this->aggregateExpression = $parser->AggregateExpression();
|
||||
}
|
||||
|
@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
|
||||
/**
|
||||
* "MAX" "(" ["DISTINCT"] StringPrimary ")"
|
||||
*
|
||||
* @link www.doctrine-project.org
|
||||
* @since 2.0
|
||||
* @since 2.6
|
||||
* @author Mathew Davies <thepixeldeveloper@icloud.com>
|
||||
*/
|
||||
class MaxFunction extends FunctionNode
|
||||
@ -35,12 +34,12 @@ class MaxFunction extends FunctionNode
|
||||
/**
|
||||
* @var AggregateExpression
|
||||
*/
|
||||
public $aggregateExpression;
|
||||
private $aggregateExpression;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getSql(SqlWalker $sqlWalker)
|
||||
public function getSql(SqlWalker $sqlWalker): string
|
||||
{
|
||||
return $this->aggregateExpression->dispatch($sqlWalker);
|
||||
}
|
||||
@ -48,7 +47,7 @@ class MaxFunction extends FunctionNode
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function parse(Parser $parser)
|
||||
public function parse(Parser $parser): void
|
||||
{
|
||||
$this->aggregateExpression = $parser->AggregateExpression();
|
||||
}
|
||||
|
@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
|
||||
/**
|
||||
* "MIN" "(" ["DISTINCT"] StringPrimary ")"
|
||||
*
|
||||
* @link www.doctrine-project.org
|
||||
* @since 2.0
|
||||
* @since 2.6
|
||||
* @author Mathew Davies <thepixeldeveloper@icloud.com>
|
||||
*/
|
||||
class MinFunction extends FunctionNode
|
||||
@ -35,12 +34,12 @@ class MinFunction extends FunctionNode
|
||||
/**
|
||||
* @var AggregateExpression
|
||||
*/
|
||||
public $aggregateExpression;
|
||||
private $aggregateExpression;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getSql(SqlWalker $sqlWalker)
|
||||
public function getSql(SqlWalker $sqlWalker): string
|
||||
{
|
||||
return $this->aggregateExpression->dispatch($sqlWalker);
|
||||
}
|
||||
@ -48,7 +47,7 @@ class MinFunction extends FunctionNode
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function parse(Parser $parser)
|
||||
public function parse(Parser $parser): void
|
||||
{
|
||||
$this->aggregateExpression = $parser->AggregateExpression();
|
||||
}
|
||||
|
@ -26,8 +26,7 @@ use Doctrine\ORM\Query\AST\AggregateExpression;
|
||||
/**
|
||||
* "SUM" "(" ["DISTINCT"] StringPrimary ")"
|
||||
*
|
||||
* @link www.doctrine-project.org
|
||||
* @since 2.0
|
||||
* @since 2.6
|
||||
* @author Mathew Davies <thepixeldeveloper@icloud.com>
|
||||
*/
|
||||
class SumFunction extends FunctionNode
|
||||
@ -35,12 +34,12 @@ class SumFunction extends FunctionNode
|
||||
/**
|
||||
* @var AggregateExpression
|
||||
*/
|
||||
public $aggregateExpression;
|
||||
private $aggregateExpression;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getSql(SqlWalker $sqlWalker)
|
||||
public function getSql(SqlWalker $sqlWalker): string
|
||||
{
|
||||
return $this->aggregateExpression->dispatch($sqlWalker);
|
||||
}
|
||||
@ -48,7 +47,7 @@ class SumFunction extends FunctionNode
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function parse(Parser $parser)
|
||||
public function parse(Parser $parser): void
|
||||
{
|
||||
$this->aggregateExpression = $parser->AggregateExpression();
|
||||
}
|
||||
|
@ -94,12 +94,12 @@ class CustomCount extends FunctionNode
|
||||
*/
|
||||
private $aggregateExpression;
|
||||
|
||||
public function parse(Parser $parser)
|
||||
public function parse(Parser $parser): void
|
||||
{
|
||||
$this->aggregateExpression = $parser->AggregateExpression();
|
||||
}
|
||||
|
||||
public function getSql(SqlWalker $sqlWalker)
|
||||
public function getSql(SqlWalker $sqlWalker): string
|
||||
{
|
||||
return $this->aggregateExpression->dispatch($sqlWalker);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user