private function getLicenseAsComment()
    {
        $license = explode(PHP_EOL, $this->licenseHeader);

        // if there are a bunch of new lines at the end of the license file
        // then we want to remove these
        while (end($license) === '') {
            array_pop($license);
        }
        reset($license);

        $license = array_map(function ($licenseLine) {
            return rtrim(' * ' . $licenseLine);
        }, $license);

        $license = implode(PHP_EOL, $license);
        $license = '/*' . PHP_EOL . $license . PHP_EOL . ' */';

        return $license;
    }