PHP Class Visithor\Compiler\Compiler

ファイルを表示 Open project: visithor/visithor

Protected Properties

Property Type Description
$version string version
$versionDate DateTime versionDate

Public Methods

Method Description
compile ( ) Compiles composer into a single phar file

Protected Methods

Method Description
addBin ( Phar $phar ) : Compiler Add bin into Phar
addFile ( Phar $phar, 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.

Private Methods

Method Description
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

Method Details

addBin() protected method

Add bin into Phar
protected addBin ( Phar $phar ) : Compiler
$phar Phar Phar
return Compiler self Object

addFile() protected method

Add a file into the phar package
protected addFile ( Phar $phar, SplFileInfo $file, boolean $strip = true ) : Compiler
$phar Phar Phar object
$file SplFileInfo File to add
$strip boolean strip
return Compiler self Object

addStub() protected method

protected addStub ( Phar $phar )
$phar Phar

compile() public method

Compiles composer into a single phar file
public compile ( )

stripWhitespace() protected method

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

Property Details

$version protected_oe property

version
protected string $version
return string

$versionDate protected_oe property

versionDate
protected DateTime $versionDate
return DateTime