コード例 #1
0
 /**
  * Meta data system constraint constructor
  *
  * @param string $constraintType
  * @param string $type
  * @param string $value
  * @param string $minVersion
  * @param string $maxVersion
  */
 public function __construct($constraintType, $type, $value = NULL, $minVersion = NULL, $maxVersion = NULL)
 {
     if ($value === '') {
         $value = NULL;
     }
     parent::__construct($constraintType, $value, $minVersion, $maxVersion);
     $this->type = $type;
 }
コード例 #2
0
 /**
  * Add a constraint
  *
  * @param \TYPO3\Flow\Package\MetaData\AbstractConstraint $constraint The constraint to add
  * @return void
  */
 public function addConstraint(\TYPO3\Flow\Package\MetaData\AbstractConstraint $constraint)
 {
     $this->constraints[$constraint->getConstraintType()][] = $constraint;
 }