[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

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

Defines 1 class

ClassGenerator:: (67 methods):
  fromReflection()
  fromArray()
  __construct()
  setName()
  getName()
  setNamespaceName()
  getNamespaceName()
  setContainingFileGenerator()
  getContainingFileGenerator()
  setDocBlock()
  getDocBlock()
  setFlags()
  addFlag()
  removeFlag()
  setAbstract()
  isAbstract()
  setFinal()
  isFinal()
  setExtendedClass()
  getExtendedClass()
  hasExtentedClass()
  removeExtentedClass()
  setImplementedInterfaces()
  getImplementedInterfaces()
  hasImplementedInterface()
  removeImplementedInterface()
  getConstant()
  getConstants()
  removeConstant()
  hasConstant()
  addConstantFromGenerator()
  addConstant()
  addConstants()
  addProperties()
  addProperty()
  addPropertyFromGenerator()
  getProperties()
  getProperty()
  addUse()
  hasUse()
  removeUse()
  hasUseAlias()
  removeUseAlias()
  getUses()
  removeProperty()
  hasProperty()
  addMethods()
  addMethod()
  addMethodFromGenerator()
  getMethods()
  getMethod()
  removeMethod()
  hasMethod()
  addTrait()
  addTraits()
  hasTrait()
  getTraits()
  removeTrait()
  addTraitAlias()
  getTraitAliases()
  addTraitOverride()
  removeTraitOverride()
  getTraitOverrides()
  isSourceDirty()
  generate()
  validateConstantValue()
  generateShortOrCompleteClassname()


Class: ClassGenerator  - X-Ref

fromReflection(ClassReflection $classReflection)   X-Ref
Build a Code Generation Php Object from a Class Reflection

param: ClassReflection $classReflection
return: self

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

param: array $array
return: self

__construct($name = null,$namespaceName = null,$flags = null,$extends = null,$interfaces = [],$properties = [],$methods = [],$docBlock = null)   X-Ref

param: string $name
param: string $namespaceName
param: array|string $flags
param: string $extends
param: array $interfaces
param: array $properties
param: array $methods
param: DocBlockGenerator $docBlock

setName($name)   X-Ref

param: string $name
return: self

getName()   X-Ref

return: string

setNamespaceName($namespaceName)   X-Ref

param: string $namespaceName
return: self

getNamespaceName()   X-Ref

return: string

setContainingFileGenerator(FileGenerator $fileGenerator)   X-Ref

param: FileGenerator $fileGenerator
return: self

getContainingFileGenerator()   X-Ref

return: FileGenerator

setDocBlock(DocBlockGenerator $docBlock)   X-Ref

param: DocBlockGenerator $docBlock
return: self

getDocBlock()   X-Ref

return: DocBlockGenerator

setFlags($flags)   X-Ref

param: array|string $flags
return: self

addFlag($flag)   X-Ref

param: string $flag
return: self

removeFlag($flag)   X-Ref

param: string $flag
return: self

setAbstract($isAbstract)   X-Ref

param: bool $isAbstract
return: self

isAbstract()   X-Ref

return: bool

setFinal($isFinal)   X-Ref

param: bool $isFinal
return: self

isFinal()   X-Ref

return: bool

setExtendedClass($extendedClass)   X-Ref

param: string $extendedClass
return: self

getExtendedClass()   X-Ref

return: string

hasExtentedClass()   X-Ref

return: bool

removeExtentedClass()   X-Ref

return: self

setImplementedInterfaces(array $implementedInterfaces)   X-Ref

param: array $implementedInterfaces
return: self

getImplementedInterfaces()   X-Ref

return: array

hasImplementedInterface($implementedInterface)   X-Ref

param: string $implementedInterface
return: bool

removeImplementedInterface($implementedInterface)   X-Ref

param: string $implementedInterface
return: self

getConstant($constantName)   X-Ref

param: string $constantName
return: PropertyGenerator|false

getConstants()   X-Ref

return: PropertyGenerator[] indexed by constant name

removeConstant($constantName)   X-Ref

param: string $constantName
return: self

hasConstant($constantName)   X-Ref

param: string $constantName
return: bool

addConstantFromGenerator(PropertyGenerator $constant)   X-Ref
Add constant from PropertyGenerator

param: PropertyGenerator           $constant
return: self

addConstant($name, $value)   X-Ref
Add Constant

param: string                      $name Non-empty string
param: string|int|null|float|array $value Scalar
return: self

addConstants(array $constants)   X-Ref

param: PropertyGenerator[]|array[] $constants
return: self

addProperties(array $properties)   X-Ref

param: array $properties
return: self

addProperty($name, $defaultValue = null, $flags = PropertyGenerator::FLAG_PUBLIC)   X-Ref
Add Property from scalars

param: string $name
param: string|array $defaultValue
param: int $flags
return: self

addPropertyFromGenerator(PropertyGenerator $property)   X-Ref
Add property from PropertyGenerator

param: PropertyGenerator           $property
return: self

getProperties()   X-Ref

return: PropertyGenerator[]

getProperty($propertyName)   X-Ref

param: string $propertyName
return: PropertyGenerator|false

addUse($use, $useAlias = null)   X-Ref
Add a class to "use" classes

param: string $use
param: string|null $useAlias
return: self

hasUse($use)   X-Ref

param: string $use
return: bool

removeUse($use)   X-Ref

param: string $use
return: self

hasUseAlias($use)   X-Ref

param: string $use
return: bool

removeUseAlias($use)   X-Ref

param: string $use
return: self

getUses()   X-Ref
Returns the "use" classes

return: array

removeProperty($propertyName)   X-Ref

param: string $propertyName
return: self

hasProperty($propertyName)   X-Ref

param: string $propertyName
return: bool

addMethods(array $methods)   X-Ref

param: array $methods
return: self

addMethod($name,array $parameters = [],$flags = MethodGenerator::FLAG_PUBLIC,$body = null,$docBlock = null)   X-Ref
Add Method from scalars

param: string $name
param: array $parameters
param: int $flags
param: string $body
param: string $docBlock
return: self

addMethodFromGenerator(MethodGenerator $method)   X-Ref
Add Method from MethodGenerator

param: MethodGenerator                    $method
return: self

getMethods()   X-Ref

return: MethodGenerator[]

getMethod($methodName)   X-Ref

param: string $methodName
return: MethodGenerator|false

removeMethod($methodName)   X-Ref

param: string $methodName
return: self

hasMethod($methodName)   X-Ref

param: string $methodName
return: bool

addTrait($trait)   X-Ref


addTraits(array $traits)   X-Ref


hasTrait($traitName)   X-Ref


getTraits()   X-Ref


removeTrait($traitName)   X-Ref


addTraitAlias($method, $alias, $visibility = null)   X-Ref


getTraitAliases()   X-Ref


addTraitOverride($method, $traitsToReplace)   X-Ref


removeTraitOverride($method, $overridesToRemove = null)   X-Ref


getTraitOverrides()   X-Ref


isSourceDirty()   X-Ref

return: bool

generate()   X-Ref


validateConstantValue($value)   X-Ref

param: mixed $value
return: void

generateShortOrCompleteClassname($fqnClassName)   X-Ref

param: string $fqnClassName
return: string



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1