for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the Resource class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
*/
namespace eZ\Publish\Core\REST\Common\Values;
use eZ\Publish\Core\REST\Common\Value as RestValue;
* This class represents a resource.
class Resource extends RestValue
{
* Resource name.
* @var string
public $name;
* Media Type of the resource.
public $mediaType;
* href of the resource.
public $href;
* Resource constructor.
* @param $name
* @param $mediaType
* @param $href
public function __construct($name, $mediaType, $href)
$this->name = $name;
$this->mediaType = $mediaType;
$this->href = $href;
}