Partager via


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()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PhpVersion value.

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()

Gets known PHP versions.

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

@Deprecated
public PhpVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PhpVersion value.

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()

Gets known PHP versions.

Returns:

known PHP versions

Applies to