Added missing parameter types to CompositeExpression::(and|or)()

parent cfd1c027
...@@ -49,11 +49,19 @@ class CompositeExpression implements Countable ...@@ -49,11 +49,19 @@ class CompositeExpression implements Countable
$this->addMultiple($parts); $this->addMultiple($parts);
} }
/**
* @param self|string $part
* @param self|string ...$parts
*/
public static function and($part, ...$parts) : self public static function and($part, ...$parts) : self
{ {
return new self(self::TYPE_AND, array_merge([$part], $parts)); return new self(self::TYPE_AND, array_merge([$part], $parts));
} }
/**
* @param self|string $part
* @param self|string ...$parts
*/
public static function or($part, ...$parts) : self public static function or($part, ...$parts) : self
{ {
return new self(self::TYPE_OR, array_merge([$part], $parts)); return new self(self::TYPE_OR, array_merge([$part], $parts));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment