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

Classes

  • ClassType
  • Helpers
  • Method
  • Parameter
  • PhpFile
  • PhpLiteral
  • PhpNamespace
  • Property
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class ClassType

Class/Interface/Trait description.

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

Parameters

$from

Returns

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

Returns

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

Returns

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

Parameters

$name

Returns

Nette\PhpGenerator\ClassType
self
public string
# getName( )

Returns

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

Parameters

$type

Returns

Nette\PhpGenerator\ClassType
self
public string
# getType( )

Returns

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

Parameters

$state

Returns

Nette\PhpGenerator\ClassType
self
public boolean
# isFinal( )

Returns

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

Parameters

$state

Returns

Nette\PhpGenerator\ClassType
self
public boolean
# isAbstract( )

Returns

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

Parameters

$types

Returns

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

Returns

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

Parameters

$type

Returns

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

Parameters

$types

Returns

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

Returns

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

Parameters

$type

Returns

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

Parameters

$traits

Returns

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

Returns

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

Parameters

$trait

Returns

Nette\PhpGenerator\ClassType
self
public Nette\PhpGenerator\ClassType
# setComment( string|null $val )

Parameters

$val

Returns

Nette\PhpGenerator\ClassType
self
public string|null
# getComment( )

Returns

string|null
string|NULL
public Nette\PhpGenerator\ClassType
# addComment( string $val )

Parameters

$val

Returns

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

Parameters

$s

Returns

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

Returns

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

Parameters

$s

Returns

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

Returns

Nette\PhpGenerator\ClassType
self
public array
# getConsts( )

Returns

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

Parameters

$name
$value

Returns

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

Parameters

$props

Returns

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

Returns

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

Returns

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

Parameters

$name
$
$value

Returns

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

Parameters

$methods

Returns

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

Returns

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

Returns

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

Parameters

$name

Returns

Nette\PhpGenerator\Method
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-20161221 API API documentation generated by ApiGen 2.8.0