interface MultitonInterface

The interface implemented by Java-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.

Details

at line 28
string key()

Returns the string key of this member.

Return Value

string The associated string key of this member.

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.

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.

at line 63
string __toString()

Returns a string representation of this member.

Return Value

string