PHP Class Mmoreram\PHPFormatter\Compiler\Compiler

Afficher le fichier Open project: mmoreram/php-formatter

Protected Properties

Свойство Type Description
$version string version
$versionDate DateTime versionDate

Méthodes publiques

Méthode Description
compile ( ) Compiles composer into a single phar file.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode 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 méthode

Add bin into Phar.
protected addBin ( Phar $phar ) : Compiler
$phar Phar Phar
Résultat Compiler self Object

addFile() protected méthode

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
Résultat Compiler self Object

addStub() protected méthode

protected addStub ( Phar $phar )
$phar Phar

compile() public méthode

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

stripWhitespace() protected méthode

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

Property Details

$version protected_oe property

version
protected string $version
Résultat string

$versionDate protected_oe property

versionDate
protected DateTime $versionDate
Résultat DateTime