interface EnumerationInterface implements ValueMultitonInterface

The interface implemented by C++ style enumeration instances.

Methods

string
key()

Returns the string key of this member.

boolean
anyOf( MultitonInterface $a, MultitonInterface $b)

Check if this member is in the specified list of members.

boolean
anyOfArray( array $values)

Check if this member is in the specified list of members.

string
__toString()

Returns a string representation of this member.

mixed
value()

Returns the value of this member.

Details

in MultitonInterface at line 28
string key()

Returns the string key of this member.

Return Value

string The associated string key of this member.

in MultitonInterface at line 41
boolean anyOf( MultitonInterface $a, MultitonInterface $b)

Check if this member is in the specified list of members.

Parameters

MultitonInterface $a
MultitonInterface $b

Return Value

boolean True if this member is in the specified list of members.

in MultitonInterface at line 52
boolean anyOfArray( array $values)

Check if this member is in the specified list of members.

Parameters

array $values An array of members to search.

Return Value

boolean True if this member is in the specified list of members.

in MultitonInterface at line 63
string __toString()

Returns a string representation of this member.

Return Value

string

mixed value()

Returns the value of this member.

Return Value

mixed The value of this member.