public function getLinkField($linkType)
    {
        if (property_exists($this->data, 'links') && property_exists($this->data->links, $linkType)) {
            return $this->data->links->{$linkType};
        } else {
            return null;
        }
    }
public function getLinkField($linkType)
    {
        if (property_exists($this->data, 'links') && property_exists($this->data->links, $linkType)) {
            return $this->data->links->{$linkType};
        } else {
            return null;
        }
    }
public function getLinkField ( $ linkType ) { if ( property_exists ( $ this -> data , 'links' ) && property_exists ( $ this -> data -> links , $ linkType ) ) { return $ this -> data -> links -> { $ linkType } ; } else { return null ; } }
attempt to return the link id from the links on the response object
If not present return null.

@param string $linkType

@return null|string
attempt to return the link id from the links on the response object If not present return null .