| 1 | <?php namespace Modules\Media\ValueObjects; |
||
| 5 | class MediaPath |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $path; |
||
| 11 | |||
| 12 | public function __construct($path) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get the URL depending on configured disk |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function getUrl() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getRelativeUrl() |
||
| 36 | |||
| 37 | public function __toString() |
||
| 45 | } |
||
| 46 |