interface PackageInterface (View source)

Interface for a basic Package class

Constants

PATTERN_MATCH_PACKAGEKEY

DEFAULT_COMPOSER_TYPE

Methods

array
getClassFiles()

Returns the array of filenames of the class files

string
getComposerName()

Returns the composer name of this package.

array
getNamespaces()

Returns an array of all namespaces declared for this package.

string
getPackagePath()

Returns the full path to this package's main directory

string
getInstalledVersion()

Returns the currently installed version of this package.

mixed
getComposerManifest(string $key = null)

Returns the composer manifest of this package or just contents of a specific key of the full configuration.

Details

array getClassFiles()

Returns the array of filenames of the class files

Return Value

array

An array of class names (key) and their filename, including the relative path to the package's directory

string getComposerName()

Returns the composer name of this package.

Return Value

string

array getNamespaces()

Returns an array of all namespaces declared for this package.

Return Value

array

string getPackagePath()

Returns the full path to this package's main directory

Return Value

string

Path to this package's main directory

string getInstalledVersion()

Returns the currently installed version of this package.

Return Value

string

mixed getComposerManifest(string $key = null)

Returns the composer manifest of this package or just contents of a specific key of the full configuration.

Parameters

string $key

Return Value

mixed