[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

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

Defines 1 class

FileGenerator:: (25 methods):
  __construct()
  fromReflectedFileName()
  fromReflection()
  fromArray()
  setDocBlock()
  getDocBlock()
  setRequiredFiles()
  getRequiredFiles()
  getNamespace()
  setNamespace()
  getUses()
  setUses()
  setUse()
  setClasses()
  getClass()
  setClass()
  setFilename()
  getFilename()
  getClasses()
  setBody()
  getBody()
  setDeclares()
  isSourceDirty()
  generate()
  write()


Class: FileGenerator  - X-Ref

__construct($options = null)   X-Ref
Passes $options to {@link setOptions()}.

param: array|\Traversable $options

fromReflectedFileName($filePath, $includeIfNotAlreadyIncluded = true)   X-Ref
Use this if you intend on generating code generation objects based on the same file.
This will keep previous changes to the file in tact during the same PHP process

param: string $filePath
param: bool $includeIfNotAlreadyIncluded
return: FileGenerator

fromReflection(FileReflection $fileReflection)   X-Ref

param: FileReflection $fileReflection
return: FileGenerator

fromArray(array $values)   X-Ref

param: array $values
return: FileGenerator

setDocBlock($docBlock)   X-Ref

param: DocBlockGenerator|array|string $docBlock
return: FileGenerator

getDocBlock()   X-Ref

return: DocBlockGenerator

setRequiredFiles(array $requiredFiles)   X-Ref

param: array $requiredFiles
return: FileGenerator

getRequiredFiles()   X-Ref

return: array

getNamespace()   X-Ref

return: string

setNamespace($namespace)   X-Ref

param: string $namespace
return: FileGenerator

getUses($withResolvedAs = false)   X-Ref
Returns an array with the first element the use statement, second is the as part.
If $withResolvedAs is set to true, there will be a third element that is the
"resolved" as statement, as the second part is not required in use statements

param: bool $withResolvedAs
return: array

setUses(array $uses)   X-Ref

param: array $uses
return: FileGenerator

setUse($use, $as = null)   X-Ref

param: string $use
param: null|string $as
return: FileGenerator

setClasses(array $classes)   X-Ref

param: array $classes
return: FileGenerator

getClass($name = null)   X-Ref

param: string $name
return: ClassGenerator

setClass($class)   X-Ref

param: array|string|ClassGenerator $class
return: FileGenerator

setFilename($filename)   X-Ref

param: string $filename
return: FileGenerator

getFilename()   X-Ref

return: string

getClasses()   X-Ref

return: ClassGenerator[]

setBody($body)   X-Ref

param: string $body
return: FileGenerator

getBody()   X-Ref

return: string

setDeclares(array $declares)   X-Ref
No description

isSourceDirty()   X-Ref

return: bool

generate()   X-Ref

return: string

write()   X-Ref

return: FileGenerator



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