public function addMemberMetadata(AbstractMemberMetadata $metadata) { $name = $metadata->getName(); if (!isset($this->_members[$name])) { $this->_members[$name] = array(); } $this->_members[$name][] = $metadata; }
public function __construct($className, $name) { if (!property_exists($className, $name)) { throw new InvalidArgumentException(sprintf('Property %s does not exists in class %s', $name, $className)); } parent::__construct($className, $name, $name); }