public function entity(Entity $entity, Array $linkRelations = array()) {
    if (!isset($this->meta['links']))
      $this->meta['links'] = array();
      
    foreach ($linkRelations as $linkRelation) {
      $this->meta['links'][] = (object) array(
        'rel'=>$linkRelation->getName(),
        'href'=>$linkRelation->getHref()
      );
    }
    
    return $this;
  }
public function entity(Entity $entity, Array $linkRelations = array()) {
    if (!isset($this->meta['links']))
      $this->meta['links'] = array();
      
    foreach ($linkRelations as $linkRelation) {
      $this->meta['links'][] = (object) array(
        'rel'=>$linkRelation->getName(),
        'href'=>$linkRelation->getHref()
      );
    }
    
    return $this;
  }
public function entity ( Entity $ entity , Array $ linkRelations = array ( ) ) { if ( ! isset ( $ this -> meta [ 'links' ] ) ) $ this -> meta [ 'links' ] = array ( ) ; foreach ( $ linkRelations as $ linkRelation ) { $ this -> meta [ 'links' ] [ ] = ( object ) array ( 'rel' => $ linkRelation -> getName ( ) , 'href' => $ linkRelation -> getHref ( ) ) ; } return $ this ; }
Adds metadata for the reponse from an Entity

@param Psc\Net\Service\LinkRelation[] $linkRelations
Adds metadata for the reponse from an Entity