| @@ 66-75 (lines=10) @@ | ||
| 63 | /** |
|
| 64 | * {@inheritDoc} |
|
| 65 | */ |
|
| 66 | protected function loadEmbedFromFile($embedName, $file) |
|
| 67 | { |
|
| 68 | $mapping = $this->getMapping('embed', $embedName, $file); |
|
| 69 | ||
| 70 | $embed = new Metadata\EmbedMetadata($embedName); |
|
| 71 | $this->setAttributes($embed, $mapping['attributes']); |
|
| 72 | $this->setEmbeds($embed, $mapping['embeds']); |
|
| 73 | $this->setMixins($embed, $mapping['mixins']); |
|
| 74 | return $embed; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * {@inheritDoc} |
|
| @@ 80-90 (lines=11) @@ | ||
| 77 | /** |
|
| 78 | * {@inheritDoc} |
|
| 79 | */ |
|
| 80 | protected function loadMixinFromFile($mixinName, $file) |
|
| 81 | { |
|
| 82 | $mapping = $this->getMapping('mixin', $mixinName, $file); |
|
| 83 | ||
| 84 | $mixin = new Metadata\MixinMetadata($mixinName); |
|
| 85 | ||
| 86 | $this->setAttributes($mixin, $mapping['attributes']); |
|
| 87 | $this->setEmbeds($mixin, $mapping['embeds']); |
|
| 88 | $this->setRelationships($mixin, $mapping['relationships']); |
|
| 89 | return $mixin; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * {@inheritDoc} |
|