Index
A
- Attribute — Class in namespace Nette\PhpGenerator
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
Adds a member. If it already exists, throws an exception or overwrites it if $overwrite is true.
- InterfaceType::addExtend() — Method in class InterfaceType
- InterfaceType::addMember() — Method in class InterfaceType
Adds a member. If it already exists, throws an exception or overwrites it if $overwrite is true.
- Method::addPromotedParameter() — Method in class Method
- PhpFile::addClass() — Method in class PhpFile
Adds a class to the file. If it already exists, throws an exception.
- PhpFile::addInterface() — Method in class PhpFile
Adds an interface to the file. If it already exists, throws an exception.
- PhpFile::addTrait() — Method in class PhpFile
Adds a trait to the file. If it already exists, throws an exception.
- PhpFile::addEnum() — Method in class PhpFile
Adds an enum to the file. If it already exists, throws an exception.
- PhpFile::addFunction() — Method in class PhpFile
Adds a function to the file. If it already exists, throws an exception.
- PhpFile::addNamespace() — Method in class PhpFile
Adds a namespace to the file. If it already exists, it returns the existing one.
- PhpFile::addUse() — Method in class PhpFile
Adds a use statement to the file, to the global namespace.
- PhpNamespace::addUse() — Method in class PhpNamespace
Adds a use statement to the namespace for class, function or constant.
- PhpNamespace::addUseFunction() — Method in class PhpNamespace
Adds a use statement to the namespace for function.
- PhpNamespace::addUseConstant() — Method in class PhpNamespace
Adds a use statement to the namespace for constant.
- PhpNamespace::add() — Method in class PhpNamespace
Adds a class-like type to the namespace. If it already exists, throws an exception.
- PhpNamespace::addClass() — Method in class PhpNamespace
Adds a class to the namespace. If it already exists, throws an exception.
- PhpNamespace::addInterface() — Method in class PhpNamespace
Adds an interface to the namespace. If it already exists, throws an exception.
- PhpNamespace::addTrait() — Method in class PhpNamespace
Adds a trait to the namespace. If it already exists, throws an exception.
- PhpNamespace::addEnum() — Method in class PhpNamespace
Adds an enum to the namespace. If it already exists, throws an exception.
- PhpNamespace::addFunction() — Method in class PhpNamespace
Adds a function to the namespace. If it already exists, throws an exception.
- TraitType::addMember() — Method in class TraitType
Adds a member. If it already exists, throws an exception or overwrites it if $overwrite is true.
- TraitUse::addResolution() — Method in class TraitUse
- AttributeAware — Class in namespace Nette\PhpGenerator\Traits
- AttributeAware::addAttribute() — Method in class AttributeAware
- CommentAware::addComment() — Method in class CommentAware
Adds a new line to the comment.
- ConstantsAware::addConstant() — Method in class ConstantsAware
Adds a constant. If it already exists, throws an exception or overwrites it if $overwrite is true.
- FunctionLike::addBody() — Method in class FunctionLike
- FunctionLike::addParameter() — Method in class FunctionLike
Adds a parameter. If it already exists, it overwrites it.
- MethodsAware::addMethod() — Method in class MethodsAware
Adds a method. If it already exists, throws an exception or overwrites it if $overwrite is true.
- PropertiesAware::addProperty() — Method in class PropertiesAware
Adds a property. If it already exists, throws an exception or overwrites it if $overwrite is true.
- TraitsAware::addTrait() — Method in class TraitsAware
Adds a method. If it already exists, throws an exception.
B
- $ Printer#bracesOnNextLine — Property in class Printer
C
- ClassLike — Class in namespace Nette\PhpGenerator
Class/Interface/Trait/Enum description.
- ClassManipulator — Class in namespace Nette\PhpGenerator
- ClassType — Class in namespace Nette\PhpGenerator
Class description.
- ClassType::class() — Method in class ClassType
- Closure — Class in namespace Nette\PhpGenerator
- Closure.
- Constant — Class in namespace Nette\PhpGenerator
Class constant.
- $ Dumper#customObjects — Property in class Dumper
- Dumper::createObject() — Method in class Dumper
- Helpers::createObject() — Method in class Helpers
- CommentAware — Class in namespace Nette\PhpGenerator\Traits
- ConstantsAware — Class in namespace Nette\PhpGenerator\Traits
- NameAware::cloneWithName() — Method in class NameAware
Returns clone with a different name.
D
- Dumper — Class in namespace Nette\PhpGenerator
Generates a PHP representation of a variable.
- Dumper::dump() — Method in class Dumper
Returns a PHP representation of a variable.
- $ Printer#dumper — Property in class Printer
- Printer::dump() — Method in class Printer
E
- ClassType::enum() — Method in class ClassType
- EnumCase — Class in namespace Nette\PhpGenerator
Enum case.
- EnumType — Class in namespace Nette\PhpGenerator
Enum description.
- Extractor — Class 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
- 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: ? \? $? ->? ::? ...? ...?: ?*
- Factory — Class 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::formatDocComment() — Method in class Helpers
- Literal::formatWith() — Method in class Literal
- Method::from() — Method in class Method
- PhpFile::fromCode() — Method in class PhpFile
- FunctionLike — Class in namespace Nette\PhpGenerator\Traits
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
- GlobalFunction — Class in namespace Nette\PhpGenerator
Global function.
- InterfaceType::getExtends() — Method in class InterfaceType
- Parameter::getType() — 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
- PhpNamespace::getName() — Method in class PhpNamespace
- PhpNamespace::getUses() — Method in class PhpNamespace
- PhpNamespace::getClass() — Method in class PhpNamespace
Returns a class-like type from the namespace.
- PhpNamespace::getClasses() — Method in class PhpNamespace
Returns all class-like types in the namespace.
- PhpNamespace::getFunction() — Method in class PhpNamespace
Returns a function from the namespace.
- PhpNamespace::getFunctions() — Method in class PhpNamespace
Returns all functions in the namespace.
- 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
- ConstantsAware::getConstant() — 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
- 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
H
- Helpers — Class 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
- TraitsAware::hasTrait() — Method in class TraitsAware
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
- ClassManipulator::inheritProperty() — Method in class ClassManipulator
Inherits property from parent class.
- ClassManipulator::inheritMethod() — Method in class ClassManipulator
Inherits method from parent class or interface.
- ClassManipulator::implementInterface() — Method in class ClassManipulator
Implements all methods from the given interface.
- ClassType::interface() — Method in class ClassType
- ClassType::isFinal() — Method in class ClassType
- ClassType::isAbstract() — Method in class ClassType
- ClassType::isReadOnly() — Method in class ClassType
- ClassType::inheritProperty() — Method in class ClassType
- ClassType::inheritMethod() — Method in class ClassType
- Constant::isFinal() — Method in class Constant
- $ Dumper#indentation — Property in class Dumper
- Helpers::isIdentifier() — Method in class Helpers
- Helpers::isNamespaceIdentifier() — Method in class Helpers
- InterfaceType — Class in namespace Nette\PhpGenerator
Interface description.
- 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#indentation — Property in class Printer
- Printer::indent() — Method in class Printer
- Printer::isBraceOnNextLine() — 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#indentation — Property in class PsrPrinter
- PsrPrinter::isBraceOnNextLine() — Method 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
- Literal — Class in namespace Nette\PhpGenerator
PHP literal value.
- $ Printer#linesBetweenProperties — Property in class Printer
- $ Printer#linesBetweenMethods — Property in class Printer
- $ Printer#linesBetweenUseTypes — Property in class Printer
- $ PsrPrinter#linesBetweenMethods — Property in class PsrPrinter
- $ PsrPrinter#linesBetweenUseTypes — Property in class PsrPrinter
M
- $ Dumper#maxDepth — Property in class Dumper
- Method — Class in namespace Nette\PhpGenerator
Class method.
- MethodsAware — Class 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#namespace — Property in class Printer
- NameAware — Class in namespace Nette\PhpGenerator\Traits
- Type::nullable() — Method in class Type
O
- $ Printer#omitEmptyNamespaces — Property in class Printer
P
- Parameter — Class in namespace Nette\PhpGenerator
Function/Method parameter description.
- PhpFile — Class in namespace Nette\PhpGenerator
Instance of PHP file.
- PhpLiteral — Class in namespace Nette\PhpGenerator
- PhpNamespace — Class in namespace Nette\PhpGenerator
Namespaced part of a PHP file.
- Printer — Class 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
- PromotedParameter — Class in namespace Nette\PhpGenerator
Promoted parameter in constructor.
- Property — Class in namespace Nette\PhpGenerator
Class property description.
- PsrPrinter — Class in namespace Nette\PhpGenerator
Generates PHP code compatible with PSR-2 and PSR-12.
- PropertiesAware — Class in namespace Nette\PhpGenerator\Traits
R
- ClassType::removeImplement() — Method in class ClassType
- EnumType::removeImplement() — Method in class EnumType
- EnumType::removeCase() — Method in class EnumType
- PhpFile::removeNamespace() — Method in class PhpFile
Removes the namespace from the file.
- PhpNamespace::removeUse() — Method in class PhpNamespace
- PhpNamespace::resolveName() — Method in class PhpNamespace
Resolves relative name to full name.
- PhpNamespace::removeClass() — Method in class PhpNamespace
Removes a class-like type from namespace.
- PhpNamespace::removeFunction() — Method in class PhpNamespace
Removes a function type from namespace.
- $ Printer#returnTypeColon — Property in class Printer
- CommentAware::removeComment() — Method in class CommentAware
- 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::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
Replaces all uses.
- 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::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
Simplifies type hint with relative names.
- PhpNamespace::simplifyName() — Method in class PhpNamespace
Simplifies the full name of a class, function, or constant to a relative name.
- $ Printer#singleParameterOnOneLine — Property 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
Replaces all attributes.
- CommentAware::setComment() — Method in class CommentAware
- ConstantsAware::setConstants() — Method in class ConstantsAware
Replaces all constants.
- 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
Replaces all methods.
- PropertiesAware::setProperties() — Method in class PropertiesAware
Replaces all properties.
- TraitsAware::setTraits() — Method in class TraitsAware
Replaces all traits.
- 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
- TraitType — Class in namespace Nette\PhpGenerator
Trait description.
- TraitUse — Class in namespace Nette\PhpGenerator
use Trait
- TraitsAware — Class in namespace Nette\PhpGenerator\Traits
- Type — Class in namespace Nette\PhpGenerator
PHP return, property and parameter types.
U
- Helpers::unformatDocComment() — Method in class Helpers
- Helpers::unindent() — Method in class Helpers
- 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
- VisibilityAware — Class in namespace Nette\PhpGenerator\Traits
W
- $ Dumper#wrapLength — Property in class Dumper
- $ Printer#wrapLength — Property in class Printer
_
- Attribute::__construct() — Method in class Attribute
- ClassLike::__construct() — Method in class ClassLike
- ClassLike::__toString() — Method in class ClassLike
- ClassLike::__clone() — Method in class ClassLike
- ClassManipulator::__construct() — Method in class ClassManipulator
- ClassType::__construct() — Method in class ClassType
- ClassType::__clone() — Method in class ClassType
- Closure::__toString() — Method in class Closure
- Closure::__clone() — Method in class Closure
- EnumType::__clone() — Method in class EnumType
- Extractor::__construct() — Method in class Extractor
- GlobalFunction::__toString() — Method in class GlobalFunction
- GlobalFunction::__clone() — 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
- Method::__clone() — 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
- NameAware::__construct() — Method in class NameAware