コード例 #1
0
ファイル: ExecutionContext.php プロジェクト: ronnylt/symfony
 /**
  * {@inheritdoc}
  */
 public function getPropertyName()
 {
     if ($this->metadata instanceof PropertyMetadataInterface) {
         return $this->metadata->getPropertyName();
     }
     return null;
 }
コード例 #2
0
ファイル: Registry.php プロジェクト: loic425/Sylius
 /**
  * {@inheritdoc}
  */
 public function add(MetadataInterface $metadata)
 {
     $this->metadata[$metadata->getAlias()] = $metadata;
 }