PHP Class Nette\PhpGenerator\Parameter

Inheritance: extends Nette\Object
ファイルを表示 Open project: nette/php-generator Class Usage Examples

Public Properties

Property Type Description
$defaultValue mixed

Public Methods

Method Description
__construct ( $name = '' )
from ( ReflectionParameter $from ) : self
getDefaultValue ( ) : mixed
getName ( ) : string
getTypeHint ( ) : string | null
isOptional ( ) : boolean
isReference ( ) : boolean
setDefaultValue ( $val ) : self
setName ( $name )
setOptional ( $state = TRUE ) : self
setReference ( $state = TRUE ) : self
setTypeHint ( $hint ) : self

Method Details

__construct() public method

public __construct ( $name = '' )

from() public static method

public static from ( ReflectionParameter $from ) : self
$from ReflectionParameter
return self

getDefaultValue() public method

public getDefaultValue ( ) : mixed
return mixed

getName() public method

public getName ( ) : string
return string

getTypeHint() public method

public getTypeHint ( ) : string | null
return string | null

isOptional() public method

public isOptional ( ) : boolean
return boolean

isReference() public method

public isReference ( ) : boolean
return boolean

setDefaultValue() public method

public setDefaultValue ( $val ) : self
return self

setName() public method

Deprecation:
public setName ( $name )

setOptional() public method

public setOptional ( $state = TRUE ) : self
return self

setReference() public method

public setReference ( $state = TRUE ) : self
return self

setTypeHint() public method

public setTypeHint ( $hint ) : self
return self

Property Details

$defaultValue public_oe property

public mixed $defaultValue
return mixed