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
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • ClassType
  • Closure
  • Constant
  • Factory
  • GlobalFunction
  • Helpers
  • Method
  • Parameter
  • PhpFile
  • PhpLiteral
  • PhpNamespace
  • Property
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class Method

Class method.

Nette\PhpGenerator\Method uses Nette\SmartObject, Nette\PhpGenerator\Traits\FunctionLike, Nette\PhpGenerator\Traits\NameAware, Nette\PhpGenerator\Traits\VisibilityAware, Nette\PhpGenerator\Traits\CommentAware
Namespace: Nette\PhpGenerator
Located at PhpGenerator/Method.php
Methods summary
public static Nette\PhpGenerator\Method
# from( callable $method )

Parameters

$method

Returns

Nette\PhpGenerator\Method
static
public
# __construct( string $name )

Parameters

$name
public string
# __toString( )

Returns

string
PHP code
public Nette\PhpGenerator\Method
# setBody( string|false $code, array $args = null )

Parameters

$code
$args

Returns

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

Returns

string|false
string|false
public Nette\PhpGenerator\Method
# setStatic( boolean $state = true )

Parameters

$state

Returns

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

Returns

boolean
bool
public Nette\PhpGenerator\Method
# setFinal( boolean $state = true )

Parameters

$state

Returns

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

Returns

boolean
bool
public Nette\PhpGenerator\Method
# setAbstract( boolean $state = true )

Parameters

$state

Returns

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

Returns

boolean
bool
Methods used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods used from Nette\PhpGenerator\Traits\FunctionLike
addBody(), addParameter(), getParameters(), getReturnNullable(), getReturnReference(), getReturnType(), isVariadic(), parametersToString(), returnTypeToString(), setNamespace(), setParameters(), setReturnNullable(), setReturnReference(), setReturnType(), setVariadic()
Methods used from Nette\PhpGenerator\Traits\NameAware
getName(), setName()
Methods used from Nette\PhpGenerator\Traits\VisibilityAware
getVisibility(), setVisibility()
Methods used from Nette\PhpGenerator\Traits\CommentAware
addComment(), addDocument(), getComment(), getDocuments(), setComment(), setDocuments()
Magic properties summary
public string|false $body
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0