Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class PhpMethod

Class method description.

Object
Extended by PhpMethod
Package: Nette\Utils\PhpGenerator
Author: David Grudl
Located at Utils/PhpGenerator/Method.php
Methods summary
public PhpParameter
# addParameter( $name, $defaultValue = NULL )

Returns

PhpParameter
public PhpParameter
# addUse( $name )

Returns

PhpParameter
public PhpMethod
# setBody( $statement, array $args = NULL )

Returns

PhpMethod
public PhpMethod
# addBody( $statement, array $args = NULL )

Returns

PhpMethod
public mixed
# __call( string $name, array $args )

Call to undefined method.

Call to undefined method.

Parameters

$name
string
method name
$args
array
arguments

Returns

mixed

Throws

MemberAccessException

Overrides

Object::__call()
public string
# __toString( )

Returns

string
PHP code
Methods inherited from Object
__callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic methods summary
public Method
# setName( string $name )

Parameters

$name
string
$name

Returns

Method
public Method
# setBody( string $body )

Parameters

$body
string
$body

Returns

Method
public Method
# setStatic( boolean $on )

Parameters

$on
boolean
$on

Returns

Method
public Method
# setVisibility( string $access )

Parameters

$access
string
$access

Returns

Method
public Method
# setFinal( boolean $on )

Parameters

$on
boolean
$on

Returns

Method
public Method
# setAbstract( boolean $on )

Parameters

$on
boolean
$on

Returns

Method
public Method
# setReturnReference( boolean $on )

Parameters

$on
boolean
$on

Returns

Method
public Method
# addDocument( string $doc )

Parameters

$doc
string
$doc

Returns

Method
Properties summary
public string $name
#
public array $parameters array()
#

of name => Parameter

of name => Parameter

public array $uses array()
#

of name => bool

of name => bool

public string|false $body
#
public boolean $static
#
public string $visibility
#

public|protected|private or none

public|protected|private or none

public boolean $final
#
public boolean $abstract
#
public boolean $returnReference
#
public array $documents array()
#

of string

of string

Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0