src/Model/Attribute/Accessor/Scope.php
public function setScope(?string $scope)
    {
        if (null !== $scope && $this->getScopes() && !in_array($scope, $this->getScopes(), true)) {
            throw new DomainException('Scope does not exist.');
        }

        $this->scope = $scope;

        return $this;
    }
public function setScope(?string $scope)
    {
        if (null !== $scope && $this->getScopes() && !in_array($scope, $this->getScopes(), true)) {
            throw new DomainException('Scope does not exist.');
        }

        $this->scope = $scope;

        return $this;
    }
public function setScope ( ? string $ scope ) { if ( null !== $ scope && $ this -> getScopes ( ) && ! in_array ( $ scope , $ this -> getScopes ( ) , true ) ) { throw new DomainException ( 'Scope does not exist.' ) ; } $ this -> scope = $ scope ; return $ this ; }
Set scope

@param string $scope
@return object
@throws \DomainException
Set scope