ZF\Apigility\Admin\Model\ModuleEntity::__construct PHP Méthode

__construct() public méthode

public __construct ( string $namespace, array $restServices = [], array $rpcServices = [], boolean $isVendor = null )
$namespace string
$restServices array
$rpcServices array
$isVendor boolean
    public function __construct($namespace, array $restServices = [], array $rpcServices = [], $isVendor = null)
    {
        if (!class_exists($namespace . '\\Module')) {
            throw new InvalidArgumentException(sprintf('Invalid module "%s"; no Module class exists for that module', $namespace));
        }
        $this->name = $namespace;
        $this->namespace = $namespace;
        $this->restServices = $restServices;
        $this->rpcServices = $rpcServices;
        $this->isVendor = is_bool($isVendor) ? $isVendor : null;
    }