1 | <?php |
||
23 | class ResourceMetadata extends ClassMetadata implements ResourceMetadataInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | * @internal |
||
28 | */ |
||
29 | public $name; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * @internal |
||
34 | */ |
||
35 | public $loader; |
||
36 | |||
37 | /** |
||
38 | * @var PropertyMetadataInterface |
||
39 | */ |
||
40 | public $idMetadata; |
||
41 | |||
42 | /** |
||
43 | * @var PropertyMetadataInterface[] |
||
44 | * @internal |
||
45 | */ |
||
46 | public $attributes = []; |
||
47 | |||
48 | /** |
||
49 | * @var PropertyMetadataInterface[] |
||
50 | * @internal |
||
51 | 5 | */ |
|
52 | public $relationships = []; |
||
53 | 5 | ||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function getName() |
||
61 | |||
62 | 9 | /** |
|
63 | * @param string $name |
||
64 | 9 | * @return $this |
|
65 | */ |
||
66 | public function setName($name = null) |
||
72 | 5 | ||
73 | /** |
||
74 | * @return PropertyMetadataInterface |
||
75 | */ |
||
76 | public function getIdMetadata() |
||
80 | |||
81 | 9 | /** |
|
82 | * @param PropertyMetadataInterface $idMetadata |
||
83 | 9 | * @return $this |
|
84 | */ |
||
85 | public function setIdMetadata($idMetadata) |
||
91 | 9 | ||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | public function getAttributes() |
||
99 | |||
100 | 9 | /** |
|
101 | * Add resource attribute metadata |
||
102 | 9 | * |
|
103 | * @param PropertyMetadataInterface $attribute |
||
104 | 9 | * @return $this |
|
105 | */ |
||
106 | public function addAttribute(PropertyMetadataInterface $attribute) |
||
112 | 6 | ||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | public function getRelationships() |
||
120 | |||
121 | 9 | /** |
|
122 | * Add resource relationship metadata |
||
123 | 9 | * |
|
124 | * @param PropertyMetadataInterface $relationship |
||
125 | 9 | * @return $this |
|
126 | */ |
||
127 | public function addRelationship(PropertyMetadataInterface $relationship) |
||
133 | 6 | ||
134 | 6 | /** |
|
135 | * @return string |
||
136 | */ |
||
137 | 1 | public function getLoader() |
|
141 | |||
142 | /** |
||
143 | 5 | * @param string $loader |
|
144 | 5 | * @return $this |
|
145 | 5 | */ |
|
146 | public function setLoader($loader = null) |
||
152 | 5 | ||
153 | 5 | /** |
|
154 | * @inheritdoc |
||
155 | 5 | */ |
|
156 | public function mergeMetadata($metadata = null) |
||
186 | } |
||
187 |