Doctrine\OrientDB\Query\Command\Credential::to PHP Method

to() public method

Sets the $role having the credential on a resource.
public to ( string $role ) : Credential
$role string
return Credential
    public function to($role)
    {
        $this->setToken('Role', $role);
        return $this;
    }