class TraversableType implements Type

Represents a traversable type.

Methods

primaryType()

Get the primary type.

Type|null
keyType()

Get the key type.

valueType()

Get the value type.

mixed
accept( TypeVisitor $visitor)

Accept a visitor.

Details

at line 45
TraversablePrimaryType primaryType()

Get the primary type.

Return Value

TraversablePrimaryType The primary type.

at line 57
Type|null keyType()

Get the key type.

Return Value

Type|null The key type.

at line 69
Type valueType()

Get the value type.

Return Value

Type The value type.

at line 83
mixed accept( TypeVisitor $visitor)

Accept a visitor.

Parameters

TypeVisitor $visitor The visitor.

Return Value

mixed The result of visitation.