Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • ClassType
  • Helpers
  • Method
  • Parameter
  • PhpFile
  • PhpLiteral
  • PhpNamespace
  • Property
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Method

Method or function description.

Nette\Object
Extended by Nette\PhpGenerator\Method
Namespace: Nette\PhpGenerator
Located at PhpGenerator/Method.php
Methods summary
public static Nette\PhpGenerator\Method
# from( $from )

Returns

Nette\PhpGenerator\Method
self
public
# __construct( string|null $name = NULL )

Parameters

$name
public string
# __toString( )

Returns

string
PHP code
public Nette\PhpGenerator\Method
# setName( string|null $name )

Parameters

$name

Returns

Nette\PhpGenerator\Method
self
public string|null
# getName( )

Returns

string|null
string|NULL
public Nette\PhpGenerator\Method
# setParameters( array $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public Nette\PhpGenerator\Parameter[]
# getParameters( )

Returns

Nette\PhpGenerator\Parameter[]
Parameter[]
public Nette\PhpGenerator\Parameter
# addParameter( string $name, $defaultValue = NULL )

Parameters

$name
$
$defaultValue

Returns

Nette\PhpGenerator\Parameter
Parameter
public Nette\PhpGenerator\Method
# setUses( array $val )

Returns

Nette\PhpGenerator\Method
self
public array
# getUses( )

Returns

array
array
public Nette\PhpGenerator\Parameter
# addUse( $name )

Returns

Nette\PhpGenerator\Parameter
Parameter
public Nette\PhpGenerator\Method
# setBody( $statement, array $args = NULL )

Returns

Nette\PhpGenerator\Method
self
public string
# getBody( )

Returns

string
string
public Nette\PhpGenerator\Method
# addBody( $statement, array $args = NULL )

Returns

Nette\PhpGenerator\Method
self
public Nette\PhpGenerator\Method
# setStatic( boolean $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public boolean
# isStatic( )

Returns

boolean
bool
public Nette\PhpGenerator\Method
# setVisibility( string|null $val )

Parameters

$val
public|protected|private

Returns

Nette\PhpGenerator\Method
self
public string|null
# getVisibility( )

Returns

string|null
string|NULL
public Nette\PhpGenerator\Method
# setFinal( boolean $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public boolean
# isFinal( )

Returns

boolean
bool
public Nette\PhpGenerator\Method
# setAbstract( boolean $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public boolean
# isAbstract( )

Returns

boolean
bool
public Nette\PhpGenerator\Method
# setReturnReference( boolean $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public boolean
# getReturnReference( )

Returns

boolean
bool
public Nette\PhpGenerator\Method
# setVariadic( boolean $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public boolean
# isVariadic( )

Returns

boolean
bool
public Nette\PhpGenerator\Method
# setComment( string|null $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public string|null
# getComment( )

Returns

string|null
string|NULL
public Nette\PhpGenerator\Method
# addComment( string $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public Nette\PhpGenerator\Method
# setDocuments( array $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public string[]
# getDocuments( )

Returns

string[]
string[]
public Nette\PhpGenerator\Method
# addDocument( string $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public Nette\PhpGenerator\Method
# setNamespace( Nette\PhpGenerator\PhpNamespace $val = NULL )

Returns

Nette\PhpGenerator\Method
self
public Nette\PhpGenerator\Method
# setReturnType( string|null $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
self
public string|null
# getReturnType( )

Returns

string|null
string|NULL
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties inherited from Nette\Object
$reflection
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0