| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class Asset |
||
| 23 | { |
||
| 24 | const CSS = 1; |
||
| 25 | |||
| 26 | const JS = 2; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | private $type; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $path; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var int |
||
| 40 | */ |
||
| 41 | private $position; |
||
| 42 | |||
| 43 | public function __construct(int $type, string $path, int $position = -1) |
||
| 44 | { |
||
| 45 | $this->type = $type; |
||
| 46 | $this->path = $path; |
||
| 47 | $this->position = $position; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getType(): int |
||
| 51 | { |
||
| 52 | return $this->type; |
||
| 53 | } |
||
| 54 | |||
| 55 | public function getPath(): string |
||
| 58 | } |
||
| 59 | |||
| 60 | public function getPosition(): ?int |
||
| 63 | } |
||
| 64 | |||
| 65 | } |