/**
  * @param $key
  *
  * @return mixed|null
  */
 public function findByKey(string $key)
 {
     if (!$this->root) {
         return null;
     }
     return $this->root->findByKey($key);
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public function __construct($left, $right, bool $caseSensitive = true)
 {
     parent::__construct($left, $right);
     $this->caseSensitive = $caseSensitive;
 }
Ejemplo n.º 4
0
 public function getExpressions()
 {
     return parent::getLeft();
 }
Ejemplo n.º 5
0
 public function isEmpty()
 {
     return parent::getLeft() === null && sizeof(parent::getRight()) === 0;
 }