1 | <?php |
||
13 | class ClassMetadata extends MergeableClassMetadata implements ClassMetadataInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var Relation[] |
||
17 | */ |
||
18 | private $relations = array(); |
||
19 | |||
20 | /** |
||
21 | * @var RelationProvider[] |
||
22 | */ |
||
23 | private $relationProviders = array(); |
||
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | public function getName() |
||
29 | { |
||
30 | return $this->name; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | public function getRelations() |
||
37 | { |
||
38 | return $this->relations; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function getRelationProviders() |
||
45 | { |
||
46 | return $this->relationProviders; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function addRelation(Relation $relation) |
||
53 | { |
||
54 | $this->relations[] = $relation; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * {@inheritDoc} |
||
59 | */ |
||
60 | public function addRelationProvider(RelationProvider $relationProvider) |
||
61 | { |
||
62 | $this->relationProviders[] = $relationProvider; |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * {@inheritDoc} |
||
67 | */ |
||
68 | public function merge(MergeableInterface $object) |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | public function serialize() |
||
91 | |||
92 | /** |
||
93 | * {@inheritDoc} |
||
94 | */ |
||
95 | public function unserialize($str) |
||
105 | } |
||
106 |