PHP 클래스 ClassPreloader\ClassPreloader

This is the main point of entry for interacting with this package.
파일 보기 프로젝트 열기: classpreloader/classpreloader 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$parser PhpParser\Parser The parser.
$printer PhpParser\PrettyPrinter\Standard The printer.
$traverser ClassPreloader\Parser\NodeTraverser The traverser.

공개 메소드들

메소드 설명
__construct ( Standard $printer, PhpParser\Parser $parser, ClassPreloader\Parser\NodeTraverser $traverser ) : void 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.

메소드 상세

__construct() 공개 메소드

Create a new class preloader instance.
public __construct ( Standard $printer, PhpParser\Parser $parser, ClassPreloader\Parser\NodeTraverser $traverser ) : void
$printer PhpParser\PrettyPrinter\Standard
$parser PhpParser\Parser
$traverser ClassPreloader\Parser\NodeTraverser
리턴 void

getCode() 공개 메소드

Get a pretty printed string of code from a file while applying visitors.
public getCode ( string $file, $comments = true ) : string
$file string
리턴 string

getCodeWrappedIntoNamespace() 보호된 메소드

Wrap the code into a namespace.
protected getCodeWrappedIntoNamespace ( array $parsed, string $pretty ) : string
$parsed array
$pretty string
리턴 string

parsedCodeHasNamespaces() 보호된 메소드

Check parsed code for having namespaces.
protected parsedCodeHasNamespaces ( array $parsed ) : boolean
$parsed array
리턴 boolean

prepareOutput() 공개 메소드

Prepare the output file and directory.
public prepareOutput ( string $output, boolean $strict = false ) : resource
$output string
$strict boolean
리턴 resource

프로퍼티 상세

$parser 보호되어 있는 프로퍼티

The parser.
protected Parser,PhpParser $parser
리턴 PhpParser\Parser

$printer 보호되어 있는 프로퍼티

The printer.
protected Standard,PhpParser\PrettyPrinter $printer
리턴 PhpParser\PrettyPrinter\Standard

$traverser 보호되어 있는 프로퍼티

The traverser.
protected NodeTraverser,ClassPreloader\Parser $traverser
리턴 ClassPreloader\Parser\NodeTraverser