예제 #1
0
 /**
  * Construct an instance of an EitherConstraint.
  *
  * @param AbstractConstraint $one
  * @param AbstractConstraint $other
  */
 public function __construct(AbstractConstraint $one, AbstractConstraint $other)
 {
     parent::__construct();
     $this->one = $one;
     $this->other = $other;
 }
 /**
  * Construct an instance of a PrimitiveConstant.
  *
  * @param string $typeName
  */
 public function __construct($typeName)
 {
     parent::__construct();
     // TODO: Validate the typeName field
     $this->expectedType = $typeName;
 }