Evaluates an expression for elements of a structured value.
Since: 1.0
Author: Bernhard Schussek (bschussek@gmail.com)
Inheritance: extends Webmozart\Expression\Logic\Literal
コード例 #1
0
ファイル: Property.php プロジェクト: webmozart/expression
 /**
  * {@inheritdoc}
  */
 public function equivalentTo(Expression $other)
 {
     if (!parent::equivalentTo($other)) {
         return false;
     }
     /* @var static $other */
     return $this->propertyName === $other->propertyName;
 }
コード例 #2
0
ファイル: Method.php プロジェクト: webmozart/expression
 /**
  * {@inheritdoc}
  */
 public function equivalentTo(Expression $other)
 {
     if (!parent::equivalentTo($other)) {
         return false;
     }
     /* @var static $other */
     return $this->methodName === $other->methodName && $this->arguments === $other->arguments;
 }
コード例 #3
0
ファイル: TestSelector.php プロジェクト: webmozart/expression
 public function __construct($key, Expression $expr)
 {
     parent::__construct($expr);
     $this->key = $key;
 }