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 concrete5 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 concrete5 version.

string
getMayorMinimumCoreVersion()

Get the mayor minimum concrete5 version.

$this
setMinimumCoreVersion(string $value)

Set the minimum concrete5 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 concrete5 version.

Return Value

string

string getMayorMinimumCoreVersion()

Get the mayor minimum concrete5 version.

Return Value

string

Examples

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

$this setMinimumCoreVersion(string $value)

Set the minimum concrete5 version.

Parameters

string $value

Return Value

$this