Goetas\Xsd\XsdToPhp\Jms\YamlConverter::findPHPNamespace PHP Method

findPHPNamespace() private method

private findPHPNamespace ( GoetasWebservices\XML\XSDReader\Schema\SchemaItem $item )
$item GoetasWebservices\XML\XSDReader\Schema\SchemaItem
    private function findPHPNamespace(SchemaItem $item)
    {
        $schema = $item->getSchema();
        if (!isset($this->namespaces[$schema->getTargetNamespace()])) {
            throw new Exception(sprintf("Can't find a PHP namespace to '%s' namespace", $schema->getTargetNamespace()));
        }
        return $this->namespaces[$schema->getTargetNamespace()];
    }