/** * @param $key * * @return mixed|null */ public function findByKey(string $key) { if (!$this->root) { return null; } return $this->root->findByKey($key); }
public function __construct($left, $right, string $escape = null, bool $caseSensitive = false) { parent::__construct($left, $right); $this->caseSensitive = $caseSensitive; if ($escape !== null) { $this->escape = Node::buildQuoted($escape); } }
public function __construct($left, $right, bool $caseSensitive = true) { parent::__construct($left, $right); $this->caseSensitive = $caseSensitive; }
public function getExpressions() { return parent::getLeft(); }
public function isEmpty() { return parent::getLeft() === null && sizeof(parent::getRight()) === 0; }