public function generateTypeInterface()
    {
        $interface = new PhpInterface($this->typeInterfaceName);
        $interface
            ->setQualifiedName('SecIT\\SchemaOrg\\Mapping\\Type\\'.$this->typeInterfaceName)
            ->setDescription('Interface '.$this->typeInterfaceName.'.')
            ->setMethod(PhpMethod::create('getSchemaUrl')
                ->setDescription('Get schema URL.')
                ->setType('string')
            )
            ->setMethod(PhpMethod::create('getId')
                ->setDescription('Get id.')
                ->setType('string')
            )
        ;

        $generator = new CodeGenerator();
        $code = $generator->generate($interface);

        $directory = $this->getMappingDirectory('Type');
        file_put_contents($directory.$this->typeInterfaceName.'.php', "<?php\n\n".$code);
    }