[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch

title

Body

[close]

/vendor/zendframework/zend-code/src/Generator/ -> ParameterGenerator.php (summary)

Zend Framework (http://framework.zend.com/)

Copyright: Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 423 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ParameterGenerator:: (21 methods):
  fromReflection()
  fromArray()
  __construct()
  setType()
  getType()
  setName()
  getName()
  setDefaultValue()
  getDefaultValue()
  setPosition()
  getPosition()
  getPassedByReference()
  setPassedByReference()
  setVariadic()
  getVariadic()
  generate()
  extractFQCNTypeFromReflectionType()
  prePhp7ExtractFQCNTypeFromReflectionType()
  expandLiteralParameterType()
  generateTypeHint()
  omitDefaultValue()


Class: ParameterGenerator  - X-Ref

fromReflection(ParameterReflection $reflectionParameter)   X-Ref

param: ParameterReflection $reflectionParameter
return: ParameterGenerator

fromArray(array $array)   X-Ref
Generate from array

param: array $array
return: ParameterGenerator

__construct($name = null,$type = null,$defaultValue = null,$position = null,$passByReference = false)   X-Ref

param: string $name
param: string $type
param: mixed $defaultValue
param: int $position
param: bool $passByReference

setType($type)   X-Ref

param: string $type
return: ParameterGenerator

getType()   X-Ref

return: string

setName($name)   X-Ref

param: string $name
return: ParameterGenerator

getName()   X-Ref

return: string

setDefaultValue($defaultValue)   X-Ref
Set the default value of the parameter.

Certain variables are difficult to express

param: null|bool|string|int|float|array|ValueGenerator $defaultValue
return: ParameterGenerator

getDefaultValue()   X-Ref

return: ValueGenerator

setPosition($position)   X-Ref

param: int $position
return: ParameterGenerator

getPosition()   X-Ref

return: int

getPassedByReference()   X-Ref

return: bool

setPassedByReference($passedByReference)   X-Ref

param: bool $passedByReference
return: ParameterGenerator

setVariadic($variadic)   X-Ref

param: bool $variadic
return: ParameterGenerator

getVariadic()   X-Ref

return: bool

generate()   X-Ref

return: string

extractFQCNTypeFromReflectionType(ParameterReflection $reflectionParameter)   X-Ref

param: ParameterReflection $reflectionParameter
return: null|string

prePhp7ExtractFQCNTypeFromReflectionType(ParameterReflection $reflectionParameter)   X-Ref
For ancient PHP versions (yes, you should upgrade to 7.0):

param: ParameterReflection $reflectionParameter
return: string|null

expandLiteralParameterType($literalParameterType, ReflectionParameter $reflectionParameter)   X-Ref

param: string              $literalParameterType
param: ReflectionParameter $reflectionParameter
return: string

generateTypeHint()   X-Ref

return: string

omitDefaultValue(bool $omit = true)   X-Ref

param: bool $omit
return: ParameterGenerator



Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1