TYPO3 CMS  TYPO3_6-2
AbstractConstraint.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 
18 abstract class AbstractConstraint {
19 
24  protected $constraintType;
25 
30  protected $value;
31 
40  public function __construct($constraintType, $value, $minVersion = NULL, $maxVersion = NULL) {
41  $this->constraintType = $constraintType;
42  $this->value = $value;
43  $this->minVersion = $minVersion;
44  $this->maxVersion = $maxVersion;
45  }
46 
50  public function getValue() {
51  return $this->value;
52  }
53 
57  public function getConstraintType() {
58  return $this->constraintType;
59  }
60 
64  abstract public function getConstraintScope();
65 }
66 ?>
__construct($constraintType, $value, $minVersion=NULL, $maxVersion=NULL)