/** * {@inheritdoc} */ public function getPropertyName() { if ($this->metadata instanceof PropertyMetadataInterface) { return $this->metadata->getPropertyName(); } return null; }
/** * {@inheritdoc} */ public function add(MetadataInterface $metadata) { $this->metadata[$metadata->getAlias()] = $metadata; }