PackageInfo
class PackageInfo (View source)
Represents the package details extracted from a package controller.php file.
Properties
private string | $packageDirectory | The package directory (normalized, without trailing slashes). |
|
private string | $handle | The package handle. |
|
private string | $version | The package version. |
|
private string | $name | The package name, in English. |
|
private string | $description | The package description, in English. |
|
private string | $minimumCoreVersion | The minimum Concrete version. |
|
private string | $minimumPHPVersion | The minimum PHP version. |
Methods
Create a new instance of this class.
Get the package directory (normalized, without trailing slashes).
Set the package directory.
Get the package handle.
Set the package handle.
Get the package version.
Set the package version.
Get the package name, in English.
Set the package name, in English.
Get the package description, in English.
Set the package description, in English.
Get the minimum Concrete version.
Get the major minimum Concrete version.
Set the minimum Concrete version.
Get the minimum PHP version.
Set the minimum PHP version.
Details
static PackageInfo
create()
Create a new instance of this class.
string
getPackageDirectory()
Get the package directory (normalized, without trailing slashes).
$this
setPackageDirectory(string $value)
Set the package directory.
string
getHandle()
Get the package handle.
$this
setHandle(string $value)
Set the package handle.
string
getVersion()
Get the package version.
$this
setVersion(string $value)
Set the package version.
string
getName()
Get the package name, in English.
$this
setName(string $value)
Set the package name, in English.
string
getDescription()
Get the package description, in English.
$this
setDescription(string $value)
Set the package description, in English.
string
getMinimumCoreVersion()
Get the minimum Concrete version.
string
getMayorMinimumCoreVersion()
Get the major minimum Concrete version.
$this
setMinimumCoreVersion(string $value)
Set the minimum Concrete version.
string
getMinimumPHPVersion()
Get the minimum PHP version.
PackageInfo
setMinimumPHPVersion(string $value)
Set the minimum PHP version.