TYPO3 CMS  TYPO3_6-2
SystemConstraint.php
Go to the documentation of this file.
1 <?php
3 
4 /* *
5  * This script belongs to the TYPO3 Flow framework. *
6  * *
7  * It is free software; you can redistribute it and/or modify it under *
8  * the terms of the GNU Lesser General Public License, either version 3 *
9  * of the License, or (at your option) any later version. *
10  * *
11  * The TYPO3 project - inspiring people to share! *
12  * */
13 
14 
19 class SystemConstraint extends \TYPO3\Flow\Package\MetaData\AbstractConstraint {
20 
26  protected $type;
27 
37  public function __construct($constraintType, $type, $value = NULL, $minVersion = NULL, $maxVersion = NULL) {
38  if (!strlen($value)) {
39  $value = NULL;
40  }
41  parent::__construct($constraintType, $value, $minVersion, $maxVersion);
42  $this->type = $type;
43  }
44 
48  public function getType() {
49  return $this->type;
50  }
51 
56  public function getConstraintScope() {
57  return \TYPO3\Flow\Package\MetaDataInterface::CONSTRAINT_SCOPE_SYSTEM;
58  }
59 }
60 ?>
__construct($constraintType, $type, $value=NULL, $minVersion=NULL, $maxVersion=NULL)