for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\Core\REST\Server\Values;
use eZ\Publish\API\Repository\Values\ValueObject;
* A link to a REST resource.
*
* @property string $link
* @property string $mediaType
class ResourceLink extends ValueObject
{
* REST resource href.
* Example: '/api/ezp/v2/content/objects/1'.
* @var string
protected $link;
* Resource media-type. If not specified, the default one is used.
* @var string|null
protected $mediaType;
public function __construct($link, $mediaType = null)
$this->link = $link;
$this->mediaType = $mediaType;
}