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
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy
    • Bridges
      • Nette

Classes

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

Class ClassType

Class/Interface/Trait description.

Nette\Object
Extended by Nette\PhpGenerator\ClassType
Namespace: Nette\PhpGenerator
Author: David Grudl
Located at PhpGenerator/ClassType.php
Methods summary
public static Nette\PhpGenerator\ClassType
# from( ReflectionClass|string $from )

Parameters

$from
ReflectionClass|string

Returns

Nette\PhpGenerator\ClassType
public
# __construct( $name = NULL, Nette\PhpGenerator\PhpNamespace $namespace = NULL )
public string
# __toString( )

Returns

string
PHP code
public Nette\PhpGenerator\PhpNamespace
# getNamespace( )

Returns

Nette\PhpGenerator\PhpNamespace
public Nette\PhpGenerator\ClassType
# setName( string $name )

Parameters

$name
string

Returns

Nette\PhpGenerator\ClassType
public string
# getName( )

Returns

string
public Nette\PhpGenerator\ClassType
# setType( string $type )

Parameters

$type
string

Returns

Nette\PhpGenerator\ClassType
public string
# getType( )

Returns

string
public Nette\PhpGenerator\ClassType
# setFinal( boolean $state = TRUE )

Parameters

$state
boolean

Returns

Nette\PhpGenerator\ClassType
public boolean
# isFinal( )

Returns

boolean
public Nette\PhpGenerator\ClassType
# setAbstract( boolean $state = TRUE )

Parameters

$state
boolean

Returns

Nette\PhpGenerator\ClassType
public boolean
# isAbstract( )

Returns

boolean
public Nette\PhpGenerator\ClassType
# setExtends( strings|string[] $types )

Parameters

$types
strings|string[]

Returns

Nette\PhpGenerator\ClassType
public strings|string[]
# getExtends( )

Returns

strings|string[]
public Nette\PhpGenerator\ClassType
# addExtend( string $type )

Parameters

$type
string

Returns

Nette\PhpGenerator\ClassType
public Nette\PhpGenerator\ClassType
# setImplements( array $types )

Parameters

$types
string[]

Returns

Nette\PhpGenerator\ClassType
public string[]
# getImplements( )

Returns

string[]
public Nette\PhpGenerator\ClassType
# addImplement( string $type )

Parameters

$type
string

Returns

Nette\PhpGenerator\ClassType
public Nette\PhpGenerator\ClassType
# setTraits( array $traits )

Parameters

$traits
string[]

Returns

Nette\PhpGenerator\ClassType
public string[]
# getTraits( )

Returns

string[]
public Nette\PhpGenerator\ClassType
# addTrait( string $trait )

Parameters

$trait
string

Returns

Nette\PhpGenerator\ClassType
public Nette\PhpGenerator\ClassType
# setDocuments( array $s )

Parameters

$s
string[]

Returns

Nette\PhpGenerator\ClassType
public string[]
# getDocuments( )

Returns

string[]
public Nette\PhpGenerator\ClassType
# addDocument( string $s )

Parameters

$s
string

Returns

Nette\PhpGenerator\ClassType
public Nette\PhpGenerator\ClassType
# setConsts( array $consts )

Returns

Nette\PhpGenerator\ClassType
public array
# getConsts( )

Returns

array
public Nette\PhpGenerator\ClassType
# addConst( string $name, mixed $value )

Parameters

$name
string
$value
mixed

Returns

Nette\PhpGenerator\ClassType
public Nette\PhpGenerator\ClassType
# setProperties( array $props )

Parameters

$props
Nette\PhpGenerator\Property[]

Returns

Nette\PhpGenerator\ClassType
public Nette\PhpGenerator\Property[]
# getProperties( )

Returns

Nette\PhpGenerator\Property[]
public Nette\PhpGenerator\Property
# getProperty( $name )

Returns

Nette\PhpGenerator\Property
public Nette\PhpGenerator\Property
# addProperty( string $name, mixed $value = NULL )

Parameters

$name
string
without $
$value
mixed

Returns

Nette\PhpGenerator\Property
public Nette\PhpGenerator\ClassType
# setMethods( array $methods )

Parameters

$methods
Nette\PhpGenerator\Method[]

Returns

Nette\PhpGenerator\ClassType
public Nette\PhpGenerator\Method[]
# getMethods( )

Returns

Nette\PhpGenerator\Method[]
public Nette\PhpGenerator\Method
# getMethod( $name )

Returns

Nette\PhpGenerator\Method
public Nette\PhpGenerator\Method
# addMethod( string $name )

Parameters

$name
string

Returns

Nette\PhpGenerator\Method
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string TYPE_CLASS 'class'
#
string TYPE_INTERFACE 'interface'
#
string TYPE_TRAIT 'trait'
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.3.1 API API documentation generated by ApiGen 2.8.0