src/Model/ProjectAccess.php
public function getEnvironmentRole(Environment $environment)
    {
        $access = $environment->getUser($this->id);

        return $access ? $access->role : false;
    }
public function getEnvironmentRole(Environment $environment)
    {
        $access = $environment->getUser($this->id);

        return $access ? $access->role : false;
    }
public function getEnvironmentRole ( Environment $ environment ) { $ access = $ environment -> getUser ( $ this -> id ) ; return $ access ? $ access -> role : false ; }
Get the user's role on an environment.

@param Environment $environment

@deprecated use Environment::getUser() instead

@return string|false
The user's environment role, or false if not found.
Get the user s role on an environment .