Skip to content

Commit

Permalink
added relation constants
Browse files Browse the repository at this point in the history
  • Loading branch information
rcerljenko committed Dec 1, 2023
1 parent 177f1a8 commit 95d5307
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Dto/Filters/FilterConditional.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@

class FilterConditional implements AbstractDto
{
public const AND = 'AND';

public const OR = 'OR';

/**
* @var 'AND'|'OR'
* @var self::AND|self::OR
*/
protected string $operator;

/**
* @param 'AND'|'OR' $operator
* @param self::AND|self::OR $operator
*/
public function __construct(string $operator)
{
$this->operator = $operator;
}

/**
* @param 'AND'|'OR' $operator
* @param self::AND|self::OR $operator
*/
public function setOperator(string $operator): self
{
Expand Down

0 comments on commit 95d5307

Please sign in to comment.