Goetas\Xsd\XsdToPhp\PathGenerator\Psr4PathGenerator::__construct PHP Method

__construct() public method

public __construct ( array $namespaces )
$namespaces array
    public function __construct(array $namespaces)
    {
        $this->namespaces = $namespaces;
        foreach ($this->namespaces as $namespace => $dir) {
            if ($namespace[strlen($namespace) - 1] !== "\\") {
                throw new PathGeneratorException("A non-empty PSR-4 prefix must end with a namespace separator, you entered '{$namespace}'.");
            }
            if (!is_dir($dir)) {
                throw new PathGeneratorException("The folder '{$dir}' does not exist.");
            }
            if (!is_writable($dir)) {
                throw new PathGeneratorException("The folder '{$dir}' is not writable.");
            }
        }
    }
Psr4PathGenerator