A

AttributeClass in namespace Nette\PhpGenerator

PHP Attribute.

ClassType::addExtend() — Method in class ClassType
ClassType::addImplement() — Method in class ClassType
ClassType::addTrait() — Method in class ClassType
ClassType::addMember() — Method in class ClassType
ClassType::addConstant() — Method in class ClassType
ClassType::addCase() — Method in class ClassType

Adds case to enum

ClassType::addProperty() — Method in class ClassType
ClassType::addMethod() — Method in class ClassType
Closure::addUse() — Method in class Closure
Method::addPromotedParameter() — Method in class Method
PhpFile::addClass() — Method in class PhpFile
PhpFile::addInterface() — Method in class PhpFile
PhpFile::addTrait() — Method in class PhpFile
PhpFile::addEnum() — Method in class PhpFile
PhpFile::addNamespace() — Method in class PhpFile
PhpFile::addFunction() — Method in class PhpFile
PhpFile::addUse() — Method in class PhpFile
PhpNamespace::addUse() — Method in class PhpNamespace
PhpNamespace::addUseFunction() — Method in class PhpNamespace
PhpNamespace::addUseConstant() — Method in class PhpNamespace
PhpNamespace::add() — Method in class PhpNamespace
PhpNamespace::addClass() — Method in class PhpNamespace
PhpNamespace::addInterface() — Method in class PhpNamespace
PhpNamespace::addTrait() — Method in class PhpNamespace
PhpNamespace::addEnum() — Method in class PhpNamespace
PhpNamespace::addFunction() — Method in class PhpNamespace
TraitUse::addResolution() — Method in class TraitUse
AttributeAwareClass in namespace Nette\PhpGenerator\Traits
AttributeAware::addAttribute() — Method in class AttributeAware
CommentAware::addComment() — Method in class CommentAware
FunctionLike::addBody() — Method in class FunctionLike
FunctionLike::addParameter() — Method in class FunctionLike

B

$ Closure#bodyProperty in class Closure
$ GlobalFunction#bodyProperty in class GlobalFunction
$ Method#bodyProperty in class Method

C

ClassTypeClass in namespace Nette\PhpGenerator

Class/Interface/Trait/Enum description.

ClassType::class() — Method in class ClassType
ClosureClass in namespace Nette\PhpGenerator
Closure.
ConstantClass in namespace Nette\PhpGenerator

Class constant.

Dumper::createObject() — Method in class Dumper
$ Extractor#callbackProperty in class Extractor
Helpers::createObject() — Method in class Helpers
CommentAwareClass in namespace Nette\PhpGenerator\Traits
NameAware::cloneWithName() — Method in class NameAware

Returns clone with a different name.

D

DumperClass in namespace Nette\PhpGenerator

PHP code generator utils.

Dumper::dump() — Method in class Dumper

Returns a PHP representation of a variable.

Helpers::dump() — Method in class Helpers
$ Parameter#defaultValueProperty in class Parameter
$ Printer#dumperProperty in class Printer
Printer::dump() — Method in class Printer

E

ClassType::enum() — Method in class ClassType
EnumCaseClass in namespace Nette\PhpGenerator

Enum case.

ExtractorClass in namespace Nette\PhpGenerator

Extracts information from PHP code.

Extractor::extractMethodBodies() — Method in class Extractor
Extractor::extractFunctionBody() — Method in class Extractor
Extractor::extractAll() — Method in class Extractor
Extractor::enterNode() — Method in class Extractor
Helpers::extractNamespace() — Method in class Helpers
Helpers::extractShortName() — Method in class Helpers

F

ClassType::from() — Method in class ClassType
ClassType::fromCode() — Method in class ClassType
Closure::from() — Method in class Closure
Dumper::format() — Method in class Dumper

Generates PHP statement. Supports placeholders: ? \? $? ->? ::? ...? ...?: ?*

FactoryClass in namespace Nette\PhpGenerator

Creates a representation based on reflection.

Factory::fromClassReflection() — Method in class Factory
Factory::fromMethodReflection() — Method in class Factory
Factory::fromFunctionReflection() — Method in class Factory
Factory::fromCallable() — Method in class Factory
Factory::fromParameterReflection() — Method in class Factory
Factory::fromConstantReflection() — Method in class Factory
Factory::fromCaseReflection() — Method in class Factory
Factory::fromPropertyReflection() — Method in class Factory
Factory::fromObject() — Method in class Factory
Factory::fromClassCode() — Method in class Factory
Factory::fromCode() — Method in class Factory
GlobalFunction::from() — Method in class GlobalFunction
Helpers::format() — Method in class Helpers
Helpers::formatArgs() — Method in class Helpers
Helpers::formatDocComment() — Method in class Helpers
Literal::formatWith() — Method in class Literal
Method::from() — Method in class Method
PhpFile::fromCode() — Method in class PhpFile
FunctionLikeClass in namespace Nette\PhpGenerator\Traits

G

Attribute::getName() — Method in class Attribute
Attribute::getArguments() — Method in class Attribute
ClassType::getNamespace() — Method in class ClassType
ClassType::getName() — Method in class ClassType
ClassType::getType() — Method in class ClassType
ClassType::getExtends() — Method in class ClassType
ClassType::getImplements() — Method in class ClassType
ClassType::getTraits() — Method in class ClassType
ClassType::getTraitResolutions() — Method in class ClassType
ClassType::getConstants() — Method in class ClassType
ClassType::getCases() — Method in class ClassType
ClassType::getProperties() — Method in class ClassType
ClassType::getProperty() — Method in class ClassType
ClassType::getMethods() — Method in class ClassType
ClassType::getMethod() — Method in class ClassType
Closure::getUses() — Method in class Closure
Constant::getValue() — Method in class Constant
EnumCase::getValue() — Method in class EnumCase
GlobalFunctionClass in namespace Nette\PhpGenerator

Global function.

Method::getBody() — Method in class Method
Parameter::getType() — Method in class Parameter
Parameter::getTypeHint() — Method in class Parameter
Parameter::getDefaultValue() — Method in class Parameter
PhpFile::getNamespaces() — Method in class PhpFile
PhpFile::getClasses() — Method in class PhpFile
PhpFile::getFunctions() — Method in class PhpFile
PhpFile::getStrictTypes() — Method in class PhpFile
PhpNamespace::getName() — Method in class PhpNamespace
PhpNamespace::getBracketedSyntax() — Method in class PhpNamespace
PhpNamespace::getUses() — Method in class PhpNamespace
PhpNamespace::getClasses() — Method in class PhpNamespace
PhpNamespace::getFunctions() — Method in class PhpNamespace
Property::getValue() — Method in class Property
Property::getType() — Method in class Property
TraitUse::getResolutions() — Method in class TraitUse
AttributeAware::getAttributes() — Method in class AttributeAware
CommentAware::getComment() — Method in class CommentAware
FunctionLike::getBody() — Method in class FunctionLike
FunctionLike::getParameters() — Method in class FunctionLike
FunctionLike::getReturnType() — Method in class FunctionLike
FunctionLike::getReturnReference() — Method in class FunctionLike
FunctionLike::getReturnNullable() — Method in class FunctionLike
NameAware::getName() — Method in class NameAware
VisibilityAware::getVisibility() — Method in class VisibilityAware
Type::getType() — Method in class Type

H

ClassType::hasProperty() — Method in class ClassType
ClassType::hasMethod() — Method in class ClassType
HelpersClass in namespace Nette\PhpGenerator
Parameter::hasDefaultValue() — Method in class Parameter
PhpFile::hasStrictTypes() — Method in class PhpFile
PhpNamespace::hasBracketedSyntax() — Method in class PhpNamespace

I

ClassType::interface() — Method in class ClassType
ClassType::isClass() — Method in class ClassType
ClassType::isInterface() — Method in class ClassType
ClassType::isTrait() — Method in class ClassType
ClassType::isEnum() — Method in class ClassType
ClassType::isFinal() — Method in class ClassType
ClassType::isAbstract() — Method in class ClassType
Constant::isFinal() — Method in class Constant
$ Dumper#indentationProperty in class Dumper
Helpers::isIdentifier() — Method in class Helpers
Helpers::isNamespaceIdentifier() — Method in class Helpers
Method::isStatic() — Method in class Method
Method::isFinal() — Method in class Method
Method::isAbstract() — Method in class Method
Parameter::isReference() — Method in class Parameter
Parameter::isNullable() — Method in class Parameter
$ Printer#indentationProperty in class Printer
Printer::indent() — Method in class Printer
PromotedParameter::isReadOnly() — Method in class PromotedParameter
Property::isStatic() — Method in class Property
Property::isNullable() — Method in class Property
Property::isInitialized() — Method in class Property
Property::isReadOnly() — Method in class Property
$ PsrPrinter#indentationProperty in class PsrPrinter
FunctionLike::isVariadic() — Method in class FunctionLike
FunctionLike::isReturnNullable() — Method in class FunctionLike
VisibilityAware::isPublic() — Method in class VisibilityAware
VisibilityAware::isProtected() — Method in class VisibilityAware
VisibilityAware::isPrivate() — Method in class VisibilityAware
Type::intersection() — Method in class Type

L

LiteralClass in namespace Nette\PhpGenerator

PHP literal value.

$ Printer#linesBetweenPropertiesProperty in class Printer
$ Printer#linesBetweenMethodsProperty in class Printer
$ PsrPrinter#linesBetweenMethodsProperty in class PsrPrinter

M

$ ClassType#methodsProperty in class ClassType
$ Dumper#maxDepthProperty in class Dumper
MethodClass in namespace Nette\PhpGenerator

Class method.

N

$ Printer#namespaceProperty in class Printer
NameAwareClass in namespace Nette\PhpGenerator\Traits
Type::nullable() — Method in class Type

P

$ ClassType#propertiesProperty in class ClassType
ParameterClass in namespace Nette\PhpGenerator

Function/Method parameter description.

PhpFileClass in namespace Nette\PhpGenerator

Instance of PHP file.

PhpLiteralClass in namespace Nette\PhpGenerator
PhpNamespaceClass in namespace Nette\PhpGenerator

Namespaced part of a PHP file.

PrinterClass in namespace Nette\PhpGenerator

Generates PHP code.

Printer::printFunction() — Method in class Printer
Printer::printClosure() — Method in class Printer
Printer::printArrowFunction() — Method in class Printer
Printer::printMethod() — Method in class Printer
Printer::printClass() — Method in class Printer
Printer::printNamespace() — Method in class Printer
Printer::printFile() — Method in class Printer
Printer::printUses() — Method in class Printer
Printer::printParameters() — Method in class Printer
Printer::printType() — Method in class Printer
PromotedParameterClass in namespace Nette\PhpGenerator

Promoted parameter in constructor.

PropertyClass in namespace Nette\PhpGenerator

Class property description.

PsrPrinterClass in namespace Nette\PhpGenerator

Generates PHP code compatible with PSR-2 and PSR-12.

R

ClassType::removeImplement() — Method in class ClassType
ClassType::removeTrait() — Method in class ClassType
ClassType::removeConstant() — Method in class ClassType
ClassType::removeCase() — Method in class ClassType
ClassType::removeProperty() — Method in class ClassType
ClassType::removeMethod() — Method in class ClassType
PhpNamespace::removeUse() — Method in class PhpNamespace
PhpNamespace::resolveName() — Method in class PhpNamespace
PhpNamespace::removeClass() — Method in class PhpNamespace
PhpNamespace::removeFunction() — Method in class PhpNamespace
$ Printer#returnTypeColonProperty in class Printer
FunctionLike::removeParameter() — Method in class FunctionLike

S

ClassType::setName() — Method in class ClassType
ClassType::setClass() — Method in class ClassType
ClassType::setInterface() — Method in class ClassType
ClassType::setTrait() — Method in class ClassType
ClassType::setType() — Method in class ClassType
ClassType::setFinal() — Method in class ClassType
ClassType::setAbstract() — Method in class ClassType
ClassType::setExtends() — Method in class ClassType
ClassType::setImplements() — Method in class ClassType
ClassType::setTraits() — Method in class ClassType
ClassType::setConstants() — Method in class ClassType
ClassType::setCases() — Method in class ClassType

Sets cases to enum

ClassType::setProperties() — Method in class ClassType
ClassType::setMethods() — Method in class ClassType
Closure::setUses() — Method in class Closure
Constant::setValue() — Method in class Constant
Constant::setFinal() — Method in class Constant
EnumCase::setValue() — Method in class EnumCase
Helpers::simplifyTaggedNames() — Method in class Helpers
Method::setBody() — Method in class Method
Method::setStatic() — Method in class Method
Method::setFinal() — Method in class Method
Method::setAbstract() — Method in class Method
Parameter::setReference() — Method in class Parameter
Parameter::setType() — Method in class Parameter
Parameter::setTypeHint() — Method in class Parameter
Parameter::setOptional() — Method in class Parameter
Parameter::setNullable() — Method in class Parameter
Parameter::setDefaultValue() — Method in class Parameter
PhpFile::setStrictTypes() — Method in class PhpFile

Adds declare(strict_types=1) to output.

PhpNamespace::setBracketedSyntax() — Method in class PhpNamespace
PhpNamespace::simplifyType() — Method in class PhpNamespace
PhpNamespace::simplifyName() — Method in class PhpNamespace
Printer::setTypeResolving() — Method in class Printer
PromotedParameter::setReadOnly() — Method in class PromotedParameter
Property::setValue() — Method in class Property
Property::setStatic() — Method in class Property
Property::setType() — Method in class Property
Property::setNullable() — Method in class Property
Property::setInitialized() — Method in class Property
Property::setReadOnly() — Method in class Property
AttributeAware::setAttributes() — Method in class AttributeAware
CommentAware::setComment() — Method in class CommentAware
FunctionLike::setBody() — Method in class FunctionLike
FunctionLike::setParameters() — Method in class FunctionLike
FunctionLike::setVariadic() — Method in class FunctionLike
FunctionLike::setReturnType() — Method in class FunctionLike
FunctionLike::setReturnReference() — Method in class FunctionLike
FunctionLike::setReturnNullable() — Method in class FunctionLike
FunctionLike::setNamespace() — Method in class FunctionLike
VisibilityAware::setVisibility() — Method in class VisibilityAware
VisibilityAware::setPublic() — Method in class VisibilityAware
VisibilityAware::setProtected() — Method in class VisibilityAware
VisibilityAware::setPrivate() — Method in class VisibilityAware

T

ClassType::trait() — Method in class ClassType
Helpers::tagName() — Method in class Helpers
Helpers::tabsToSpaces() — Method in class Helpers
TraitUseClass in namespace Nette\PhpGenerator

use Trait

TypeClass in namespace Nette\PhpGenerator

PHP return, property and parameter types.

U

Helpers::unformatDocComment() — Method in class Helpers
Helpers::unindent() — Method in class Helpers
PhpNamespace::unresolveName() — Method in class PhpNamespace
Type::union() — Method in class Type

V

ClassType::validate() — Method in class ClassType
Helpers::validateType() — Method in class Helpers
Method::validate() — Method in class Method
Parameter::validate() — Method in class Parameter
PromotedParameter::validate() — Method in class PromotedParameter
$ Property#valueProperty in class Property
Property::validate() — Method in class Property
VisibilityAwareClass in namespace Nette\PhpGenerator\Traits

W

ClassType::withBodiesFrom() — Method in class ClassType
$ Dumper#wrapLengthProperty in class Dumper
GlobalFunction::withBodyFrom() — Method in class GlobalFunction
$ Printer#wrapLengthProperty in class Printer

_

Attribute::__construct() — Method in class Attribute
ClassType::__construct() — Method in class ClassType
ClassType::__toString() — Method in class ClassType
ClassType::__clone() — Method in class ClassType
Closure::__toString() — Method in class Closure
Extractor::__construct() — Method in class Extractor
GlobalFunction::__toString() — Method in class GlobalFunction
Literal::__construct() — Method in class Literal
Literal::__toString() — Method in class Literal
Method::__toString() — Method in class Method
PhpFile::__toString() — Method in class PhpFile
PhpNamespace::__construct() — Method in class PhpNamespace
PhpNamespace::__toString() — Method in class PhpNamespace
Printer::__construct() — Method in class Printer
TraitUse::__construct() — Method in class TraitUse
NameAware::__construct() — Method in class NameAware