| 1 | <?php |
||
| 11 | final class Package |
||
| 12 | { |
||
| 13 | const PACKAGES = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * |
||
| 23 | * @param string $name |
||
| 24 | * @throws PackageNotInstalledException |
||
| 25 | */ |
||
| 26 | 1 | public function __construct($name) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Check if the given package is installed |
||
| 37 | * |
||
| 38 | * @return boolean |
||
| 39 | */ |
||
| 40 | 2 | public static function isInstalled($name) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * NOTE: i removed per default all other methods. |
||
| 51 | * They are not static and on Package::__construct() the exception will be thrown |
||
| 52 | */ |
||
| 53 | } |
||
| 54 |