phpDocumentor

IsTyped in phpDocumentor

Methods

getType()  : Type|null
Returns a normalized Types.
setType()  : void
Sets a normalized list of types that the argument represents.

Methods

getType()

Returns a normalized Types.

``` public getType() : Type|null```
Tags
see
self::setTypes()

for details on what types represent.

Type|null

setType()

Sets a normalized list of types that the argument represents.

``` public setType(Type|null \$type) : void```

Arguments should have one of the types mentioned in this array. If this array is empty than that is considered to be the type `mixed` (meaning: can be anything).

Any Type representing a class/interface/trait should be normalized to its complete FQCN, including preceding backslash. Types that do not represent a class/interface/trait should be written in lowercaps and should not be preceded by a backslash.

Parameters
\$type : Type|null

Type of this agument represented as a reflection type.

Tags

Definition of a type.

todo

update link to point to the final destination for the PHPDoc Standard.