Example #1
0
 /**
  * Adds property metadata
  *
  * @param PropertyMetadataInterface $metadata
  * @return $this
  */
 public function addProperty(PropertyMetadataInterface $metadata)
 {
     $this->properties[$metadata->getPropertyName()] = $metadata;
     return $this;
 }
Example #2
0
 /**
  * Add resource relationship metadata
  *
  * @param PropertyMetadataInterface $relationship
  * @return $this
  */
 public function addRelationship(PropertyMetadataInterface $relationship)
 {
     $this->relationships[$relationship->getPropertyName()] = $relationship;
     return $this;
 }