‪TYPO3CMS  9.5
Dependency.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
22 {
26  protected ‪$identifier = '';
27 
31  protected ‪$lowestVersion = '';
32 
36  protected ‪$highestVersion = '';
37 
41  protected ‪$type = '';
42 
46  protected static ‪$dependencyTypes = [
47  'depends',
48  'conflicts',
49  'suggests'
50  ];
51 
55  public static ‪$specialDependencies = [
56  'typo3',
57  'php'
58  ];
59 
64  {
65  $this->highestVersion = ‪$highestVersion;
66  }
67 
71  public function ‪getHighestVersion()
72  {
74  }
75 
79  public function ‪setIdentifier(‪$identifier)
80  {
81  $this->identifier = ‪$identifier;
82  }
83 
87  public function ‪getIdentifier()
88  {
90  }
91 
95  public function ‪setLowestVersion(‪$lowestVersion)
96  {
97  $this->lowestVersion = ‪$lowestVersion;
98  }
99 
103  public function ‪getLowestVersion()
104  {
106  }
107 
112  public function ‪setType(‪$type)
113  {
114  if (in_array(‪$type, self::$dependencyTypes)) {
115  $this->type = ‪$type;
116  } else {
117  throw new \TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException(‪$type . ' was not a valid dependency type.', 1476122402);
118  }
119  }
120 
124  public function ‪getType()
125  {
126  return ‪$this->type;
127  }
128 }
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency
Definition: Dependency.php:22
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\getLowestVersion
‪string getLowestVersion()
Definition: Dependency.php:97
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\$dependencyTypes
‪static array $dependencyTypes
Definition: Dependency.php:41
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\getType
‪string getType()
Definition: Dependency.php:118
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\setIdentifier
‪setIdentifier($identifier)
Definition: Dependency.php:73
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\setType
‪setType($type)
Definition: Dependency.php:106
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\getIdentifier
‪string getIdentifier()
Definition: Dependency.php:81
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\$highestVersion
‪string $highestVersion
Definition: Dependency.php:33
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\$type
‪string $type
Definition: Dependency.php:37
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\$specialDependencies
‪static array $specialDependencies
Definition: Dependency.php:49
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\setLowestVersion
‪setLowestVersion($lowestVersion)
Definition: Dependency.php:89
‪TYPO3\CMS\Extensionmanager\Domain\Model
Definition: Dependency.php:2
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\setHighestVersion
‪setHighestVersion($highestVersion)
Definition: Dependency.php:57
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\$identifier
‪string $identifier
Definition: Dependency.php:25
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\getHighestVersion
‪string getHighestVersion()
Definition: Dependency.php:65
‪TYPO3\CMS\Extensionmanager\Domain\Model\Dependency\$lowestVersion
‪string $lowestVersion
Definition: Dependency.php:29