src/Model/Project.php
public function getSubscriptionId()
    {
        if ($this->hasProperty('subscription_id', false)) {
            return $this->getProperty('subscription_id');
        }

        if (isset($this->data['subscription']['license_uri'])) {
            return basename($this->data['subscription']['license_uri']);
        }

        throw new \RuntimeException('Subscription ID not found');
    }
public function getSubscriptionId()
    {
        if ($this->hasProperty('subscription_id', false)) {
            return $this->getProperty('subscription_id');
        }

        if (isset($this->data['subscription']['license_uri'])) {
            return basename($this->data['subscription']['license_uri']);
        }

        throw new \RuntimeException('Subscription ID not found');
    }
public function getSubscriptionId ( ) { if ( $ this -> hasProperty ( 'subscription_id' , false ) ) { return $ this -> getProperty ( 'subscription_id' ) ; } if ( isset ( $ this -> data [ 'subscription' ] [ 'license_uri' ] ) ) { return basename ( $ this -> data [ 'subscription' ] [ 'license_uri' ] ) ; } throw new \ RuntimeException ( 'Subscription ID not found' ) ; }
Get the subscription ID for the project.

@todo when APIs are unified, this can be a property

@return int
Get the subscription ID for the project .