A

AttributeClass in namespace Nette\PhpGenerator

Definition of a PHP attribute.

ClassType::addImplement() — Method in class ClassType
ClassType::addMember() — Method in class ClassType
Closure::addUse() — Method in class Closure
EnumType::addImplement() — Method in class EnumType
EnumType::addCase() — Method in class EnumType

Adds case to enum

EnumType::addMember() — Method in class EnumType
InterfaceType::addExtend() — Method in class InterfaceType
InterfaceType::addMember() — Method in class InterfaceType
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
TraitType::addMember() — Method in class TraitType
TraitUse::addResolution() — Method in class TraitUse
AttributeAwareClass in namespace Nette\PhpGenerator\Traits
AttributeAware::addAttribute() — Method in class AttributeAware
CommentAware::addComment() — Method in class CommentAware
ConstantsAware::addConstant() — Method in class ConstantsAware
FunctionLike::addBody() — Method in class FunctionLike
FunctionLike::addParameter() — Method in class FunctionLike
MethodsAware::addMethod() — Method in class MethodsAware
PropertiesAware::addProperty() — Method in class PropertiesAware
TraitsAware::addTrait() — Method in class TraitsAware

B

$ Printer#bracesOnNextLineProperty in class Printer

C

ClassLikeClass in namespace Nette\PhpGenerator

Base definition of class, interface, trait or enum type.

ClassTypeClass in namespace Nette\PhpGenerator

Definition of a class with properties, methods, constants, traits and PHP attributes.

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

Definition of a closure.

ConstantClass in namespace Nette\PhpGenerator

Definition of a 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
ConstantsAwareClass 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
$ Printer#dumperProperty in class Printer
Printer::dump() — Method in class Printer

E

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

Definition of an enum case.

EnumTypeClass in namespace Nette\PhpGenerator

Definition of an enum with cases, methods, constants and traits.

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

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

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

FactoryClass in namespace Nette\PhpGenerator

Creates a representations based on reflection or source code.

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
Visibility::from() — Method in class Visibility

G

Attribute::getName() — Method in class Attribute
Attribute::getArguments() — Method in class Attribute
ClassLike::getNamespace() — Method in class ClassLike
ClassLike::getName() — Method in class ClassLike
ClassType::getType() — Method in class ClassType
ClassType::getExtends() — Method in class ClassType
ClassType::getImplements() — Method in class ClassType
Closure::getUses() — Method in class Closure
Constant::getValue() — Method in class Constant
Constant::getType() — Method in class Constant
EnumCase::getValue() — Method in class EnumCase
EnumType::getType() — Method in class EnumType
EnumType::getImplements() — Method in class EnumType
EnumType::getCases() — Method in class EnumType
GlobalFunctionClass in namespace Nette\PhpGenerator

Definition of a global function.

InterfaceType::getExtends() — Method in class InterfaceType
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
ConstantsAware::getConstants() — Method in class ConstantsAware
FunctionLike::getBody() — Method in class FunctionLike
FunctionLike::getParameters() — Method in class FunctionLike
FunctionLike::getParameter() — Method in class FunctionLike
FunctionLike::getReturnType() — Method in class FunctionLike
FunctionLike::getReturnReference() — Method in class FunctionLike
FunctionLike::getReturnNullable() — Method in class FunctionLike
MethodsAware::getMethods() — Method in class MethodsAware
MethodsAware::getMethod() — Method in class MethodsAware
NameAware::getName() — Method in class NameAware
PropertiesAware::getProperties() — Method in class PropertiesAware
PropertiesAware::getProperty() — Method in class PropertiesAware
TraitsAware::getTraits() — Method in class TraitsAware
VisibilityAware::getVisibility() — Method in class VisibilityAware
Type::getType() — Method in class Type

H

HelpersClass in namespace Nette\PhpGenerator
Parameter::hasDefaultValue() — Method in class Parameter
PhpFile::hasStrictTypes() — Method in class PhpFile
PhpNamespace::hasBracketedSyntax() — Method in class PhpNamespace
ConstantsAware::hasConstant() — Method in class ConstantsAware
FunctionLike::hasParameter() — Method in class FunctionLike
MethodsAware::hasMethod() — Method in class MethodsAware
PropertiesAware::hasProperty() — Method in class PropertiesAware

I

ClassLike::isClass() — Method in class ClassLike
ClassLike::isInterface() — Method in class ClassLike
ClassLike::isTrait() — Method in class ClassLike
ClassLike::isEnum() — Method in class ClassLike
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::isFinal() — Method in class ClassType
ClassType::isAbstract() — Method in class ClassType
ClassType::isReadOnly() — 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
InterfaceTypeClass in namespace Nette\PhpGenerator

Definition of an interface with methods and constants.

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
$ Printer#linesBetweenUseTypesProperty in class Printer
$ PsrPrinter#linesBetweenMethodsProperty in class PsrPrinter
$ PsrPrinter#linesBetweenUseTypesProperty in class PsrPrinter

M

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

Definition of a class method.

MethodsAwareClass in namespace Nette\PhpGenerator\Traits

N

Literal::new() — Method in class Literal

Creates a literal representing the creation of an object using the new operator.

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

P

ParameterClass in namespace Nette\PhpGenerator

Definition of a function/method parameter.

PhpFileClass in namespace Nette\PhpGenerator

Definition of a PHP file.

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

Definition of a PHP namespace.

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
Printer::printDocComment() — Method in class Printer
Printer::printReturnType() — Method in class Printer
Printer::printAttributes() — Method in class Printer
PromotedParameterClass in namespace Nette\PhpGenerator

Definition of a promoted constructor parameter.

PropertyClass in namespace Nette\PhpGenerator

Definition of a class property.

PsrPrinterClass in namespace Nette\PhpGenerator

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

PropertiesAwareClass in namespace Nette\PhpGenerator\Traits

R

ClassType::removeImplement() — Method in class ClassType
EnumType::removeImplement() — Method in class EnumType
EnumType::removeCase() — Method in class EnumType
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
ConstantsAware::removeConstant() — Method in class ConstantsAware
FunctionLike::removeParameter() — Method in class FunctionLike
MethodsAware::removeMethod() — Method in class MethodsAware
PropertiesAware::removeProperty() — Method in class PropertiesAware
TraitsAware::removeTrait() — Method in class TraitsAware

S

ClassLike::setName() — Method in class ClassLike
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::setReadOnly() — Method in class ClassType
ClassType::setExtends() — Method in class ClassType
ClassType::setImplements() — Method in class ClassType
Closure::setUses() — Method in class Closure
Constant::setValue() — Method in class Constant
Constant::setFinal() — Method in class Constant
Constant::setType() — Method in class Constant
EnumCase::setValue() — Method in class EnumCase
EnumType::setType() — Method in class EnumType
EnumType::setImplements() — Method in class EnumType
EnumType::setCases() — Method in class EnumType

Sets cases to enum

Helpers::simplifyTaggedNames() — Method in class Helpers
InterfaceType::setExtends() — Method in class InterfaceType
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::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#singleParameterOnOneLineProperty in class Printer
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
ConstantsAware::setConstants() — Method in class ConstantsAware
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
MethodsAware::setMethods() — Method in class MethodsAware
PropertiesAware::setProperties() — Method in class PropertiesAware
TraitsAware::setTraits() — Method in class TraitsAware
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
TraitTypeClass in namespace Nette\PhpGenerator

Definition of a trait with properties, methods, constants and traits.

TraitUseClass in namespace Nette\PhpGenerator

Definition of a trait use statement.

TraitsAwareClass in namespace Nette\PhpGenerator\Traits
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

ClassLike::validateNames() — Method in class ClassLike
ClassLike::validate() — Method in class ClassLike
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::validate() — Method in class Property
VisibilityAwareClass in namespace Nette\PhpGenerator\Traits
VisibilityClass in namespace Nette\PhpGenerator

Member visibility.

W

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

_

Attribute::__construct() — Method in class Attribute
ClassLike::__construct() — Method in class ClassLike
ClassLike::__toString() — Method in class ClassLike
ClassType::__construct() — Method in class ClassType
ClassType::__clone() — Method in class ClassType
Closure::__toString() — Method in class Closure
EnumType::__clone() — Method in class EnumType
Extractor::__construct() — Method in class Extractor
GlobalFunction::__toString() — Method in class GlobalFunction
InterfaceType::__clone() — Method in class InterfaceType
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
TraitType::__clone() — Method in class TraitType
TraitUse::__construct() — Method in class TraitUse
TraitUse::__call() — Method in class TraitUse
NameAware::__construct() — Method in class NameAware