| Total Complexity | 8 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | class GenericSnippetFile extends AbstractSnippetFile |
||
| 6 | { |
||
| 7 | private string $name; |
||
| 8 | |||
| 9 | private string $path; |
||
| 10 | |||
| 11 | private string $iso; |
||
| 12 | |||
| 13 | private string $author; |
||
| 14 | |||
| 15 | private bool $isBase; |
||
| 16 | |||
| 17 | private string $technicalName; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @deprecated tag:v6.5.0 - parameter $technicalName will be required |
||
| 21 | */ |
||
| 22 | public function __construct(string $name, string $path, string $iso, string $author, bool $isBase, ?string $technicalName = null) |
||
| 23 | { |
||
| 24 | $this->name = $name; |
||
| 25 | $this->path = $path; |
||
| 26 | $this->iso = $iso; |
||
| 27 | $this->author = $author; |
||
| 28 | $this->isBase = $isBase; |
||
| 29 | $this->technicalName = $technicalName ?? ''; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getName(): string |
||
| 33 | { |
||
| 34 | return $this->name; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getPath(): string |
||
| 38 | { |
||
| 39 | return $this->path; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getIso(): string |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getAuthor(): string |
||
| 48 | { |
||
| 49 | return $this->author; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function isBase(): bool |
||
| 53 | { |
||
| 54 | return $this->isBase; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function getTechnicalName(): string |
||
| 58 | { |
||
| 59 | return $this->technicalName; |
||
| 60 | } |
||
| 61 | |||
| 62 | public function setTechnicalName(string $technicalName): void |
||
| 65 | } |
||
| 66 | } |
||
| 67 |