PhpVersion Class

public final class PhpVersion
extends ExpandableStringEnum<PhpVersion>

Defines values for PHP version.

Field Summary

Modifier and Type Field and Description
static final PhpVersion OFF

Static value 'Off' for PhpVersion.

static final PhpVersion PHP5_5

Static value 5.5 for PhpVersion.

static final PhpVersion PHP5_6

Static value 5.6 for PhpVersion.

static final PhpVersion PHP7

Static value 7.0 for PhpVersion.

static final PhpVersion PHP7_1

Static value 7.1 for PhpVersion.

Constructor Summary

Constructor Description
PhpVersion()

Method Summary

Modifier and Type Method and Description
static PhpVersion fromString(String name)

Finds or creates a PHP version based on the specified name.

static Collection<PhpVersion> values()

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

OFF

public static final PhpVersion OFF

Static value 'Off' for PhpVersion.

PHP5_5

public static final PhpVersion PHP5_5

Static value 5.5 for PhpVersion.

PHP5_6

public static final PhpVersion PHP5_6

Static value 5.6 for PhpVersion.

PHP7

public static final PhpVersion PHP7

Static value 7.0 for PhpVersion.

PHP7_1

public static final PhpVersion PHP7_1

Static value 7.1 for PhpVersion.

Constructor Details

PhpVersion

public PhpVersion()

Method Details

fromString

public static PhpVersion fromString(String name)

Finds or creates a PHP version based on the specified name.

Parameters:

name - a name

Returns:

a PhpVersion instance

values

public static Collection values()

Returns:

known PHP versions

Applies to