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

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.

setMinimumPHPVersion(string $value)

Set the minimum PHP version.

Details

static PackageInfo create()

Create a new instance of this class.

Return Value

PackageInfo

string getPackageDirectory()

Get the package directory (normalized, without trailing slashes).

Return Value

string

$this setPackageDirectory(string $value)

Set the package directory.

Parameters

string $value

Return Value

$this

string getHandle()

Get the package handle.

Return Value

string

$this setHandle(string $value)

Set the package handle.

Parameters

string $value

Return Value

$this

string getVersion()

Get the package version.

Return Value

string

$this setVersion(string $value)

Set the package version.

Parameters

string $value

Return Value

$this

string getName()

Get the package name, in English.

Return Value

string

$this setName(string $value)

Set the package name, in English.

Parameters

string $value

Return Value

$this

string getDescription()

Get the package description, in English.

Return Value

string

$this setDescription(string $value)

Set the package description, in English.

Parameters

string $value

Return Value

$this

string getMinimumCoreVersion()

Get the minimum Concrete version.

Return Value

string

string getMayorMinimumCoreVersion()

Get the major minimum Concrete version.

Return Value

string

Examples

'5.0'
'5.6'
'5.7'
'8'
'9'

$this setMinimumCoreVersion(string $value)

Set the minimum Concrete version.

Parameters

string $value

Return Value

$this

string getMinimumPHPVersion()

Get the minimum PHP version.

Return Value

string

PackageInfo setMinimumPHPVersion(string $value)

Set the minimum PHP version.

Parameters

string $value

Return Value

PackageInfo