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 ")"
|
* "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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user