public function write()
    {
        $capfile = '';

        foreach ($this->parameters as $namespace) {
            $line = str_replace('<requirement>', $namespace, self::$template);
            $capfile = sprintf('%s%s%s', $capfile, PHP_EOL, $line);
        }

        $capfile .= self::$importTemplate;

        fwrite($this->file, $this->addHeaders($capfile));
    }