Method | Description | |
---|---|---|
__construct ( string $name = null ) | Creates a new PHP parameter | |
create ( string $name = null ) : static | Creates a new PHP parameter. | |
fromReflection ( ReflectionParameter $ref ) : |
Creates a PHP parameter from reflection | |
getDocblockTag ( ) : gossi\docblock\tags\ParamTag | Returns a docblock tag for this parameter | |
getTypeDescription ( ) : string | Alias for getDescription() | |
isPassedByReference ( ) : boolean | Returns whether this parameter is passed by reference | |
setPassedByReference ( boolean $bool ) | Sets whether this parameter is passed by reference | |
setTypeDescription ( string $description ) | Alias for setDescription() |
public __construct ( string $name = null ) | ||
$name | string | the parameter name |
public static fromReflection ( ReflectionParameter $ref ) : |
||
$ref | ReflectionParameter | |
return |
public getDocblockTag ( ) : gossi\docblock\tags\ParamTag | ||
return | gossi\docblock\tags\ParamTag |
public getTypeDescription ( ) : string | ||
return | string |
public isPassedByReference ( ) : boolean | ||
return | boolean | `true` if passed by reference and `false` if not |
public setPassedByReference ( boolean $bool ) | ||
$bool | boolean | `true` if passed by reference and `false` if not |
public setTypeDescription ( string $description ) | ||
$description | string |