Documentation

Enum
in package

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

The value of the enum

private string $_value

$constants

private static mixed $constants = []

Methods

__construct()

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

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

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

Create a new class for the enum in question

public toArray() : mixed
Tags
throws
ReflectionException
Return values
mixed

value()

Get the value of the enum

public value() : string
Return values
string

value of the enum

Search results