src/Model/Environment.php
public function getPublicUrl()
    {
        if (!$this->hasLink('public-url')) {
            $id = $this->data['id'];
            if (!$this->isActive()) {
                throw new EnvironmentStateException("No public URL found for environment '$id'. It is not currently active.", $this);
            }
            throw new OperationUnavailableException("No public URL found for environment '$id'.");
        }

        return $this->getLink('public-url');
    }
public function getPublicUrl()
    {
        if (!$this->hasLink('public-url')) {
            $id = $this->data['id'];
            if (!$this->isActive()) {
                throw new EnvironmentStateException("No public URL found for environment '$id'. It is not currently active.", $this);
            }
            throw new OperationUnavailableException("No public URL found for environment '$id'.");
        }

        return $this->getLink('public-url');
    }
public function getPublicUrl ( ) { if ( ! $ this -> hasLink ( 'public-url' ) ) { $ id = $ this -> data [ 'id' ] ; if ( ! $ this -> isActive ( ) ) { throw new EnvironmentStateException ( "No public URL found for environment '$id'. It is not currently active." , $ this ) ; } throw new OperationUnavailableException ( "No public URL found for environment '$id'." ) ; } return $ this -> getLink ( 'public-url' ) ; }
Get the public URL for the environment.

@throws EnvironmentStateException

@deprecated You should use routes to get the correct URL(s)
@see        self::getRouteUrls()

@return string
Get the public URL for the environment .