| 1 | <?php |
||
| 6 | class FileEntity extends EntityAbstract |
||
| 7 | { |
||
| 8 | public $type = ''; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Return diretory path |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | public function getTargetPath(): string |
||
| 19 | |||
| 20 | // public function isProject(): bool |
||
| 21 | // { |
||
| 22 | // if (file_exists($this->getTargetPath().'/.git')) { |
||
| 23 | // return true; |
||
| 24 | // } |
||
| 25 | // if (file_exists($this->getTargetPath().'/.gitignore')) { |
||
| 26 | // return true; |
||
| 27 | // } |
||
| 28 | // if (file_exists($this->getTargetPath().'/pubspec.yaml')) { |
||
| 29 | // return true; |
||
| 30 | // } |
||
| 31 | // if (file_exists($this->getTargetPath().'/composer.json')) { |
||
| 32 | // return true; |
||
| 33 | // } |
||
| 34 | // if (file_exists($this->getTargetPath().'/package.json')) { |
||
| 35 | // return true; |
||
| 36 | // } |
||
| 37 | |||
| 38 | // return false; |
||
| 39 | // } |
||
| 40 | } |