mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-30 20:35:44 +09:00
Adding module depencies
This commit is contained in:
9 files changed
+73
-7
No files matched your search
@@ -10,6 +10,7 @@
|
||||
private $description = null;
|
||||
private $author = null;
|
||||
private $repository = null;
|
||||
private $depencies = null;
|
||||
private $is_valid = false;
|
||||
|
||||
public function __construct(string $path) {
|
||||
@@ -70,6 +71,10 @@
|
||||
$this->repository = $data->repository;
|
||||
}
|
||||
|
||||
if(!empty($data->depencies)) {
|
||||
$this->depencies = $data->depencies;
|
||||
}
|
||||
|
||||
$this->is_valid = true;
|
||||
}
|
||||
|
||||
@@ -114,5 +119,9 @@
|
||||
public function getRepository() : string {
|
||||
return $this->repository;
|
||||
}
|
||||
|
||||
public function getDepencies() : object {
|
||||
return $this->depencies;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user