Menu

## Enum
in package

Enum.php : 29

Class Enum

##### Tags

category

  Library

license

  https://opensource.org/licenses/MIT MIT License

link
  https://graph.microsoft.io/

### Table of Contents

$_value : string
  The value of the enum
$constants : mixed
__construct() : mixed
  Create a new enum
has() : bool
  Check if the enum has the given value
is() : bool
  Check if the enum is defined
toArray() : mixed
  Create a new class for the enum in question
value() : string
  Get the value of the enum

### Properties

#### $_value

Enum.php : 37

The value of the enum

`private string $_value`

#### $constants

Enum.php : 31
`private static mixed $constants = []`

### Methods

#### __construct()

Enum.php : 46

Create a new enum

`public __construct(string $value) : mixed`

##### Parameters

$value : string

  The value of the enum

##### Tags

throws
  GraphException

  if enum value is invalid

##### Return values

mixed —

#### has()

Enum.php : 60

Check if the enum has the given value

`public has(string $value) : bool`

##### Parameters

$value : string

##### Return values

bool —

the enum has the value

#### is()

Enum.php : 72

Check if the enum is defined

`public is(string $value) : bool`

##### Parameters

$value : string

  the value of the enum

##### Return values

bool —

True if the value is defined

#### toArray()

Enum.php : 83

Create a new class for the enum in question

`public toArray() : mixed`

##### Tags

throws
  ReflectionException

##### Return values

mixed —

#### value()

Enum.php : 100

Get the value of the enum

`public value() : string`

##### Return values

string —

value of the enum

## Search results