Skip to content

Commit

Permalink
Add scalar types for WhereClauseBuilder method arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Feb 14, 2019
1 parent a947b2c commit a915832
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Classes/VirtualObject/Persistence/Backend/WhereClauseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function build(
QueryInterface $query,
callable $prepareValue = null,
callable $escapeColumnName = null,
$bindingPrefix = ''
string $bindingPrefix = ''
) {
$this->reset();

Expand Down Expand Up @@ -75,8 +75,8 @@ public function addConstraints(
array $constraints,
callable $prepareValue = null,
callable $escapeColumnName = null,
$bindingPrefix = '',
$combinator = QueryInterface::COMBINATOR_AND,
string $bindingPrefix = '',
string $combinator = QueryInterface::COMBINATOR_AND,
ConfigurationInterface $configuration = null
) {
WhereClause::assertCombinator($combinator);
Expand All @@ -98,24 +98,24 @@ public function addConstraints(
/**
* Add a constraint to the WHERE-clause
*
* @param string $property
* @param mixed $value
* @param callable|null $prepareValue `mixed function(mixed $queryValue)`
* @param callable|null $escapeColumnName `string function(string $propertyName)`
* @param string $bindingPrefix
* @param string $combinator
* @param ConfigurationInterface|null $configuration
* @param string $property
* @param int|float|string|array|Constraint|object $value
* @param callable|null $prepareValue `mixed function(mixed $queryValue)`
* @param callable|null $escapeColumnName `string function(string $propertyName)`
* @param string $bindingPrefix
* @param string $combinator
* @param ConfigurationInterface|null $configuration
* @return WhereClauseBuilder
* @throws InvalidColumnNameException
* @throws InvalidOperatorException
*/
public function addConstraint(
$property,
string $property,
$value,
callable $prepareValue = null,
callable $escapeColumnName = null,
$bindingPrefix = '',
$combinator = QueryInterface::COMBINATOR_AND,
string $bindingPrefix = '',
string $combinator = QueryInterface::COMBINATOR_AND,
ConfigurationInterface $configuration = null
) {
WhereClause::assertCombinator($combinator);
Expand Down

0 comments on commit a915832

Please sign in to comment.