| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | final class Content |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | private $data; |
||
| 9 | |||
| 10 | /** @var \App\Domain\Path */ |
||
| 11 | private $path; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param mixed $data |
||
| 15 | * @param \App\Domain\Path $path |
||
| 16 | */ |
||
| 17 | public function __construct($data, Path $path) |
||
| 18 | { |
||
| 19 | $this->data = $data; |
||
| 20 | $this->path = $path; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return \App\Domain\Path |
||
| 25 | */ |
||
| 26 | public function getPath(): Path |
||
| 27 | { |
||
| 28 | return $this->path; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function getData() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |