1 | <?php |
||
23 | class ResourceMetadata extends ClassMetadata implements ResourceMetadataInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | * @internal |
||
28 | */ |
||
29 | public $name; |
||
30 | |||
31 | /** |
||
32 | * @var PropertyMetadataInterface |
||
33 | */ |
||
34 | public $idMetadata; |
||
35 | |||
36 | /** |
||
37 | * @var PropertyMetadataInterface[] |
||
38 | * @internal |
||
39 | */ |
||
40 | public $attributes = []; |
||
41 | |||
42 | /** |
||
43 | * @var PropertyMetadataInterface[] |
||
44 | * @internal |
||
45 | */ |
||
46 | 1 | public $relationships = []; |
|
47 | |||
48 | 1 | /** |
|
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function getName() |
||
55 | 3 | ||
56 | /** |
||
57 | 3 | * @param string $name |
|
58 | * @return $this |
||
59 | 3 | */ |
|
60 | public function setName($name = null) |
||
66 | |||
67 | 2 | /** |
|
68 | * @return PropertyMetadataInterface |
||
69 | */ |
||
70 | public function getIdMetadata() |
||
74 | |||
75 | /** |
||
76 | 3 | * @param PropertyMetadataInterface $idMetadata |
|
77 | * @return $this |
||
78 | 3 | */ |
|
79 | public function setIdMetadata($idMetadata) |
||
85 | |||
86 | 2 | /** |
|
87 | * @inheritdoc |
||
88 | 2 | */ |
|
89 | public function getAttributes() |
||
93 | |||
94 | /** |
||
95 | * Add resource attribute metadata |
||
96 | * |
||
97 | 3 | * @param PropertyMetadataInterface $attribute |
|
98 | * @return $this |
||
99 | 3 | */ |
|
100 | public function addAttribute(PropertyMetadataInterface $attribute) |
||
106 | |||
107 | 2 | /** |
|
108 | * @inheritdoc |
||
109 | 2 | */ |
|
110 | 2 | public function getRelationships() |
|
114 | 1 | ||
115 | 1 | /** |
|
116 | 1 | * Add resource relationship metadata |
|
117 | * |
||
118 | * @param PropertyMetadataInterface $relationship |
||
119 | 1 | * @return $this |
|
120 | 1 | */ |
|
121 | 1 | public function addRelationship(PropertyMetadataInterface $relationship) |
|
127 | 1 | ||
128 | /** |
||
129 | * @inheritdoc |
||
130 | */ |
||
131 | public function mergeMetadata($metadata = null) |
||
157 | } |