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
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • ClassType
  • Constant
  • Factory
  • Helpers
  • Member
  • Method
  • Parameter
  • PhpFile
  • PhpLiteral
  • PhpNamespace
  • Property
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class Method

Method or function description.

Nette\PhpGenerator\Member uses Nette\SmartObject
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
static
public
# __construct( string|null $name = NULL )

Parameters

$name

Overrides

Nette\PhpGenerator\Member::__construct()
public string
# __toString( )

Returns

string
PHP code
public Nette\PhpGenerator\Method
# setParameters( array $val )

Parameters

$val

Returns

Nette\PhpGenerator\Method
static
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
static
public array
# getUses( )

Returns

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

Returns

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

Returns

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

Returns

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

Returns

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

Parameters

$val

Returns

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

Returns

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

Parameters

$val

Returns

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

Returns

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

Parameters

$val

Returns

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

Returns

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

Parameters

$val

Returns

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

Returns

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

Parameters

$val

Returns

Nette\PhpGenerator\Method
static
public boolean
# getReturnNullable( )

Returns

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

Parameters

$val

Returns

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

Returns

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

Returns

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

Parameters

$val

Returns

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

Returns

string|null
string|NULL
Methods inherited from Nette\PhpGenerator\Member
addComment(), addDocument(), getComment(), getDocuments(), getName(), getVisibility(), setComment(), setDocuments(), setName(), setVisibility()
Methods used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties summary
public string $body
Nette 2.4-20170119 API API documentation generated by ApiGen 2.8.0