| 1 | <?php |
||
| 16 | class DocsStatus implements Arrayable |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $hash; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $path; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * DocsStatus constructor. |
||
| 30 | * @param string $path |
||
| 31 | * @param string $hash |
||
| 32 | */ |
||
| 33 | public function __construct(string $path, string $hash) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getHash(): string |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getPath(): string |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | public function toArray(): array |
||
| 65 | } |