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

on() public method

Sets the $resource on which the credential is given.
public on ( string $resource ) : Credential
$resource string
return Credential
    public function on($resource)
    {
        $this->setToken('Resource', $resource);
        return $this;
    }