src/Model/Environment.php
public function getCurrentDeployment()
    {
        $deployment = EnvironmentDeployment::get('current', $this->getUri() . '/deployments', $this->client);
        if (!$deployment) {
            throw new EnvironmentStateException('Current deployment not found', $this);
        }

        return $deployment;
    }
public function getCurrentDeployment()
    {
        $deployment = EnvironmentDeployment::get('current', $this->getUri() . '/deployments', $this->client);
        if (!$deployment) {
            throw new EnvironmentStateException('Current deployment not found', $this);
        }

        return $deployment;
    }
public function getCurrentDeployment ( ) { $ deployment = EnvironmentDeployment :: get ( 'current' , $ this -> getUri ( ) . '/deployments' , $ this -> client ) ; if ( ! $ deployment ) { throw new EnvironmentStateException ( 'Current deployment not found' , $ this ) ; } return $ deployment ; }
Get the current deployment of this environment.

@throws \RuntimeException if no current deployment is found.

@return EnvironmentDeployment
Get the current deployment of this environment .