[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/zendframework/zend-code/src/Generator/ -> MethodGenerator.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: 445 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MethodGenerator:: (17 methods):
  fromReflection()
  copyMethodSignature()
  clearBodyIndention()
  fromArray()
  __construct()
  setParameters()
  setParameter()
  getParameters()
  setBody()
  getBody()
  setReturnType()
  getReturnType()
  setReturnsReference()
  generate()
  __toString()
  extractReturnTypeFromMethodReflection()
  expandLiteralType()


Class: MethodGenerator  - X-Ref

fromReflection(MethodReflection $reflectionMethod)   X-Ref

param: MethodReflection $reflectionMethod
return: MethodGenerator

copyMethodSignature(MethodReflection $reflectionMethod)   X-Ref
Returns a MethodGenerator based on a MethodReflection with only the signature copied.

This is similar to fromReflection() but without the method body and phpdoc as this is quite heavy to copy.
It's for example useful when creating proxies where you normally change the method body anyway.

clearBodyIndention($body)   X-Ref
Identify the space indention from the first line and remove this indention
from all lines

param: string $body
return: string

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

param: array $array
return: MethodGenerator

__construct($name = null,array $parameters = [],$flags = self::FLAG_PUBLIC,$body = null,$docBlock = null)   X-Ref

param: string $name
param: array $parameters
param: int $flags
param: string $body
param: DocBlockGenerator|string $docBlock

setParameters(array $parameters)   X-Ref

param: array $parameters
return: MethodGenerator

setParameter($parameter)   X-Ref

param: ParameterGenerator|array|string $parameter
return: MethodGenerator

getParameters()   X-Ref

return: ParameterGenerator[]

setBody($body)   X-Ref

param: string $body
return: MethodGenerator

getBody()   X-Ref

return: string

setReturnType($returnType = null)   X-Ref

param: string|null $returnType
return: MethodGenerator

getReturnType()   X-Ref

return: TypeGenerator|null

setReturnsReference($returnsReference)   X-Ref

param: bool $returnsReference
return: MethodGenerator

generate()   X-Ref

return: string

__toString()   X-Ref
No description

extractReturnTypeFromMethodReflection(MethodReflection $methodReflection)   X-Ref

param: MethodReflection $methodReflection
return: null|string

expandLiteralType($literalReturnType, ReflectionMethod $methodReflection)   X-Ref

param: string           $literalReturnType
param: ReflectionMethod $methodReflection
return: string



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1