TYPO3 CMS  TYPO3_6-2
Dependency.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $identifier = '';
27 
31  protected $lowestVersion = '';
32 
36  protected $highestVersion = '';
37 
41  protected $type = '';
42 
46  static protected $dependencyTypes = array(
47  'depends',
48  'conflicts',
49  'suggests'
50  );
51 
55  static public $specialDependencies = array(
56  'typo3',
57  'php'
58  );
59 
65  $this->highestVersion = $highestVersion;
66  }
67 
71  public function getHighestVersion() {
72  return $this->highestVersion;
73  }
74 
79  public function setIdentifier($identifier) {
80  $this->identifier = $identifier;
81  }
82 
86  public function getIdentifier() {
87  return $this->identifier;
88  }
89 
94  public function setLowestVersion($lowestVersion) {
95  $this->lowestVersion = $lowestVersion;
96  }
97 
101  public function getLowestVersion() {
102  return $this->lowestVersion;
103  }
104 
110  public function setType($type) {
111  if (in_array($type, self::$dependencyTypes)) {
112  $this->type = $type;
113  } else {
114  throw new \TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException($type . ' was not a valid dependency type.');
115  }
116  }
117 
121  public function getType() {
122  return $this->type;
123  }
124 
125 }