[ Index ]

PHP Cross Reference of phpBB-3.3.3-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

return: self
param: ClassReflection $classReflection

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

return: self
param: array $array

__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

return: self
param: string $name

getName()   X-Ref

return: string

setNamespaceName($namespaceName)   X-Ref

return: self
param: string $namespaceName

getNamespaceName()   X-Ref

return: string

setContainingFileGenerator(FileGenerator $fileGenerator)   X-Ref

return: self
param: FileGenerator $fileGenerator

getContainingFileGenerator()   X-Ref

return: FileGenerator

setDocBlock(DocBlockGenerator $docBlock)   X-Ref

return: self
param: DocBlockGenerator $docBlock

getDocBlock()   X-Ref

return: DocBlockGenerator

setFlags($flags)   X-Ref

return: self
param: array|string $flags

addFlag($flag)   X-Ref

return: self
param: string $flag

removeFlag($flag)   X-Ref

return: self
param: string $flag

setAbstract($isAbstract)   X-Ref

return: self
param: bool $isAbstract

isAbstract()   X-Ref

return: bool

setFinal($isFinal)   X-Ref

return: self
param: bool $isFinal

isFinal()   X-Ref

return: bool

setExtendedClass($extendedClass)   X-Ref

return: self
param: string $extendedClass

getExtendedClass()   X-Ref

return: string

hasExtentedClass()   X-Ref

return: bool

removeExtentedClass()   X-Ref

return: self

setImplementedInterfaces(array $implementedInterfaces)   X-Ref

return: self
param: array $implementedInterfaces

getImplementedInterfaces()   X-Ref

return: array

hasImplementedInterface($implementedInterface)   X-Ref

return: bool
param: string $implementedInterface

removeImplementedInterface($implementedInterface)   X-Ref

return: self
param: string $implementedInterface

getConstant($constantName)   X-Ref

return: PropertyGenerator|false
param: string $constantName

getConstants()   X-Ref

return: PropertyGenerator[] indexed by constant name

removeConstant($constantName)   X-Ref

return: self
param: string $constantName

hasConstant($constantName)   X-Ref

return: bool
param: string $constantName

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

return: self
param: PropertyGenerator           $constant

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

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

addConstants(array $constants)   X-Ref

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

addProperties(array $properties)   X-Ref

return: self
param: array $properties

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

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

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

return: self
param: PropertyGenerator           $property

getProperties()   X-Ref

return: PropertyGenerator[]

getProperty($propertyName)   X-Ref

return: PropertyGenerator|false
param: string $propertyName

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

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

hasUse($use)   X-Ref

return: bool
param: string $use

removeUse($use)   X-Ref

return: self
param: string $use

hasUseAlias($use)   X-Ref

return: bool
param: string $use

removeUseAlias($use)   X-Ref

return: self
param: string $use

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

return: array

removeProperty($propertyName)   X-Ref

return: self
param: string $propertyName

hasProperty($propertyName)   X-Ref

return: bool
param: string $propertyName

addMethods(array $methods)   X-Ref

return: self
param: array $methods

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

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

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

return: self
param: MethodGenerator                    $method

getMethods()   X-Ref

return: MethodGenerator[]

getMethod($methodName)   X-Ref

return: MethodGenerator|false
param: string $methodName

removeMethod($methodName)   X-Ref

return: self
param: string $methodName

hasMethod($methodName)   X-Ref

return: bool
param: string $methodName

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

return: void
param: mixed $value

generateShortOrCompleteClassname($fqnClassName)   X-Ref

return: string
param: string $fqnClassName



Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1