프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$parser | PhpParser\Parser | The parser. | |
$printer | The printer. | ||
$traverser | ClassPreloader\Parser\NodeTraverser | The traverser. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Create a new class preloader instance. | |
getCode ( string $file, $comments = true ) : string | Get a pretty printed string of code from a file while applying visitors. | |
prepareOutput ( string $output, boolean $strict = false ) : resource | Prepare the output file and directory. |
메소드 | 설명 | |
---|---|---|
getCodeWrappedIntoNamespace ( array $parsed, string $pretty ) : string | Wrap the code into a namespace. | |
parsedCodeHasNamespaces ( array $parsed ) : boolean | Check parsed code for having namespaces. |
public __construct ( |
||
$printer | ||
$parser | PhpParser\Parser | |
$traverser | ClassPreloader\Parser\NodeTraverser | |
리턴 | void |
protected parsedCodeHasNamespaces ( array $parsed ) : boolean | ||
$parsed | array | |
리턴 | boolean |
public prepareOutput ( string $output, boolean $strict = false ) : resource | ||
$output | string | |
$strict | boolean | |
리턴 | resource |
protected Standard,PhpParser\PrettyPrinter $printer | ||
리턴 |