Completed
Push — master ( 93cf6b...6a541b )
by Ricardo
04:18
created

FileEntity::getTargetPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fabrica\Entities;
4
5
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
16
    {
17
        return $this->code;
18
    }
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
}