Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Resource.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Common\Values;
8
9 use eZ\Publish\Core\REST\Common\Value as RestValue;
10
14 class Resource extends RestValue
15 {
21 public $name;
22
28 public $mediaType;
29
35 public $href;
36
44 public function __construct($name, $mediaType, $href)
45 {
46 $this->name = $name;
47 $this->mediaType = $mediaType;
48 $this->href = $href;
49 }
50 }
eZ\Publish\Core\REST\Common\Value
Definition: Core/REST/Common/Value.php:10
eZ\Publish\Core\REST\Common\Values\Resource
This class represents a resource.
Definition: Resource.php:15
eZ\Publish\Core\REST\Common\Values\Resource\$name
$name
Definition: Resource.php:21
eZ\Publish\Core\REST\Common\Values\Resource\$href
$href
Definition: Resource.php:35
eZ\Publish\Core\REST\Common\Values\Resource\$mediaType
$mediaType
Definition: Resource.php:28
eZ\Publish\Core\REST\Common\Values\Resource\__construct
__construct($name, $mediaType, $href)
Resource constructor.
Definition: Resource.php:44
eZ\Publish\Core\REST\Common\Values
Definition: Common/Values/ContentObjectStates.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.