Beispiel #1
0
 /**
  * @return bool
  */
 protected function checkEqualTo()
 {
     if ($this->equalToConstraint instanceof Field) {
         return $this->value === $this->equalToConstraint->getValue();
     } else {
         return true;
     }
 }
Beispiel #2
0
 /**
  * @param $name
  * @param Field $field
  * @return Field
  */
 public function addField($name, Field $field)
 {
     $this->fields[$name] = $field;
     $field->setParent($this);
     return $field;
 }