1
0
mirror of https://github.com/php/phd.git synced 2026-03-24 07:02:07 +01:00
Files
2024-12-29 19:58:10 +00:00

23 lines
576 B
PHP

<?php
namespace phpdotnet\phd;
class Package_IDE_PHP extends Package_IDE_Base {
public function __construct(
Config $config,
OutputHandler $outputHandler
) {
parent::__construct($config, $outputHandler);
$this->registerFormatName('IDE-PHP');
$this->setExt($this->config->ext === null ? ".php" : $this->config->ext);
}
public function parseFunction() {
$str = '<?php' . PHP_EOL;
$str .= 'return ' . var_export($this->function, true) . ';' . PHP_EOL;
$str .= '?>';
return $str;
}
}