src/Model/Subscription.php
public function getProject()
    {
        if (!$this->hasLink('project') && !$this->isActive()) {
            throw new \BadMethodCallException('Inactive subscriptions do not have projects.');
        }
        $url = $this->getLink('project');
        return Project::get($url, null, $this->client);
    }
public function getProject()
    {
        if (!$this->hasLink('project') && !$this->isActive()) {
            throw new \BadMethodCallException('Inactive subscriptions do not have projects.');
        }
        $url = $this->getLink('project');
        return Project::get($url, null, $this->client);
    }
public function getProject ( ) { if ( ! $ this -> hasLink ( 'project' ) && ! $ this -> isActive ( ) ) { throw new \ BadMethodCallException ( 'Inactive subscriptions do not have projects.' ) ; } $ url = $ this -> getLink ( 'project' ) ; return Project :: get ( $ url , null , $ this -> client ) ; }
Get the project associated with this subscription.

@return Project|false
Get the project associated with this subscription .