Documentation
¶
Overview ¶
Package phptype declares PHP types that can be used in PHPDoc syntax trees.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct { Elem Type // contains filtered or unexported fields }
An Array represent an array of a specified type.
type ArrayShape ¶
type ArrayShape struct { Elems []*ArrayElem // contains filtered or unexported fields }
An ArrayShape represents the structure of key-values of a PHP array in the ordered-map mode.
type ConstFetch ¶
type Intersect ¶
type Intersect struct { Types []Type // contains filtered or unexported fields }
An Intersect represents an intersect of types.
type Named ¶
type Named struct { Parts []string Global bool // fully qualified // contains filtered or unexported fields }
Named represents a (possibly qualified or fully qualified) PHP name, which might be a class name, a built-in type, or a special type (e.g. null, true).
type Nullable ¶
type Nullable struct { Type Type // contains filtered or unexported fields }
Nullable represents a nullable type.
type ObjectElem ¶
An ObjectElem represents a key-value element of ObjectShape.
type ObjectShape ¶
type ObjectShape struct { Elems []*ObjectElem // contains filtered or unexported fields }
An ObjectShape represents the structure of \stdClass.
type Paren ¶
type Paren struct { Type Type // contains filtered or unexported fields }
A Paren represents a parenthesized type.
type This ¶
type This struct {
// contains filtered or unexported fields
}
This represents the $this special type.