| 1 | <?php |
||
| 7 | class SourceFolder |
||
| 8 | { |
||
| 9 | const TYPE_SOURCE = 'source'; |
||
| 10 | const TYPE_TEST_SOURCE = 'test_source'; |
||
| 11 | const TYPE_EXCLUDED = 'excluded'; |
||
| 12 | |||
| 13 | private $path; |
||
| 14 | private $type; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string|null |
||
| 18 | */ |
||
| 19 | private $packagePrefix; |
||
| 20 | |||
| 21 | 5 | public function __construct(string $path, string $type) |
|
| 22 | { |
||
| 23 | 5 | $this->path = $path; |
|
| 24 | 5 | $this->type = $type; |
|
| 25 | 5 | } |
|
| 26 | |||
| 27 | 5 | public function getPath(): string |
|
| 28 | { |
||
| 29 | 5 | return $this->path; |
|
| 30 | } |
||
| 31 | |||
| 32 | 4 | public function getType(): string |
|
| 33 | { |
||
| 34 | 4 | return $this->type; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string|null |
||
| 39 | */ |
||
| 40 | public function getPackagePrefix() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string|null $packagePrefix |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function setPackagePrefix($packagePrefix): self |
||
| 54 | } |
||
| 55 |