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 PhpClassType

Class/Interface/Trait description.

Object
Extended by PhpClassType
Package: Nette\Utils\PhpGenerator
Author: David Grudl
Located at Utils/PhpGenerator/ClassType.php
Methods summary
public
# __construct( $name = NULL )
public PhpClassType
# addConst( $name, $value )

Returns

PhpClassType
public PhpProperty
# addProperty( $name, $value = NULL )

Returns

PhpProperty
public PhpMethod
# addMethod( $name )

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 ClassType
# setName( string $name )

Parameters

$name
string
$name

Returns

ClassType
public ClassType
# setType( string $type )

Parameters

$type
string
$type

Returns

ClassType
public ClassType
# setFinal( boolean $on )

Parameters

$on
boolean
$on

Returns

ClassType
public ClassType
# setAbstract( boolean $on )

Parameters

$on
boolean
$on

Returns

ClassType
public ClassType
# addExtend( string $class )

Parameters

$class
string
$class

Returns

ClassType
public ClassType
# addImplement( string $interface )

Parameters

$interface
string
$interface

Returns

ClassType
public ClassType
# addTrait( string $trait )

Parameters

$trait
string
$trait

Returns

ClassType
public ClassType
# addDocument( string $doc )

Parameters

$doc
string
$doc

Returns

ClassType
Properties summary
public string $name
#
public string $type 'class'
#

class|interface|trait

class|interface|trait

public boolean $final
#
public boolean $abstract
#
public string[] $extends array()
#
public string[] $implements array()
#
public string[] $traits array()
#
public string[] $documents array()
#
public mixed[] $consts array()
#

name => value

name => value

public PhpProperty[] $properties array()
#

name => Property

name => Property

public PhpMethod[] $methods array()
#

name => Method

name => Method

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