PHP 클래스 Mmoreram\PHPFormatter\Compiler\Compiler

파일 보기 프로젝트 열기: mmoreram/php-formatter

보호된 프로퍼티들

프로퍼티 타입 설명
$version string version
$versionDate DateTime versionDate

공개 메소드들

메소드 설명
compile ( ) Compiles composer into a single phar file.

보호된 메소드들

메소드 설명
addBin ( Phar $phar ) : Compiler Add bin into Phar.
addFile ( Phar $phar, Symfony\Component\Finder\SplFileInfo $file, boolean $strip = true ) : Compiler Add a file into the phar package.
addStub ( Phar $phar )
stripWhitespace ( string $source ) : string Removes whitespace from a PHP source string while preserving line numbers.

비공개 메소드들

메소드 설명
addComposerVendorFiles ( Phar $phar ) : Compiler Add composer vendor files.
addLicense ( Phar $phar ) : Compiler Add license.
addPHPFiles ( Phar $phar ) : Compiler Add php files.
addVendorFiles ( Phar $phar ) : Compiler Add vendor files.
loadVersion ( ) Load versions.

메소드 상세

addBin() 보호된 메소드

Add bin into Phar.
protected addBin ( Phar $phar ) : Compiler
$phar Phar Phar
리턴 Compiler self Object

addFile() 보호된 메소드

Add a file into the phar package.
protected addFile ( Phar $phar, Symfony\Component\Finder\SplFileInfo $file, boolean $strip = true ) : Compiler
$phar Phar Phar object
$file Symfony\Component\Finder\SplFileInfo File to add
$strip boolean strip
리턴 Compiler self Object

addStub() 보호된 메소드

protected addStub ( Phar $phar )
$phar Phar

compile() 공개 메소드

Compiles composer into a single phar file.
public compile ( )

stripWhitespace() 보호된 메소드

Removes whitespace from a PHP source string while preserving line numbers.
protected stripWhitespace ( string $source ) : string
$source string A PHP string
리턴 string The PHP string with the whitespace removed

프로퍼티 상세

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

version
protected string $version
리턴 string

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

versionDate
protected DateTime $versionDate
리턴 DateTime