| 1 | <?php |
||
| 16 | class ResourceLink extends ValueObject |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * REST resource href. |
||
| 20 | * Example: '/api/ezp/v2/content/objects/1'. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $link; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Resource media-type. If not specified, the default one is used. |
||
| 28 | * @var string|null |
||
| 29 | */ |
||
| 30 | protected $mediaType; |
||
| 31 | |||
| 32 | public function __construct($link, $mediaType = null) |
||
| 37 | } |
||
| 38 |