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 ClassType

Class/Interface/Trait description.

Nette\PhpGenerator\ClassType uses Nette\SmartObject, Nette\PhpGenerator\Traits\CommentAware
Namespace: Nette\PhpGenerator
Located at PhpGenerator/ClassType.php
Methods summary
public static Nette\PhpGenerator\ClassType
# from( string|object $class )

Parameters

$class

Returns

Nette\PhpGenerator\ClassType
static
public
# __construct( string|null $name = null, Nette\PhpGenerator\PhpNamespace $namespace = null )

Parameters

$name
$namespace
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|null $name )

Parameters

$name

Returns

Nette\PhpGenerator\ClassType
static
public string|null
# getName( )

Returns

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

Parameters

$type

Returns

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

Returns

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

Parameters

$state

Returns

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

Returns

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

Parameters

$state

Returns

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

Returns

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

Parameters

$names

Returns

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

Returns

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

Parameters

$name

Returns

Nette\PhpGenerator\ClassType
static
public Nette\PhpGenerator\ClassType
# setImplements( array $names )

Parameters

$names

Returns

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

Returns

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

Parameters

$name

Returns

Nette\PhpGenerator\ClassType
static
public Nette\PhpGenerator\ClassType
# setTraits( array $names )

Parameters

$names

Returns

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

Returns

string[]
string[]
public Nette\PhpGenerator\ClassType
# addTrait( string $name, array $resolutions = [] )

Parameters

$name
$resolutions

Returns

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

Deprecated

use setConstants()

Returns

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

Deprecated

use getConstants()

Returns

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

Deprecated

use addConstant()

Parameters

$name
$value

Returns

Nette\PhpGenerator\ClassType
static
public Nette\PhpGenerator\ClassType
# setConstants( array $consts )

Parameters

$consts

Returns

Nette\PhpGenerator\ClassType
static
public Nette\PhpGenerator\Constant[]
# getConstants( )

Returns

Nette\PhpGenerator\Constant[]
Constant[]
public Nette\PhpGenerator\Constant
# addConstant( string $name, mixed $value )

Parameters

$name
$value

Returns

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

Parameters

$props

Returns

Nette\PhpGenerator\ClassType
static
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
static
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 used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods used from Nette\PhpGenerator\Traits\CommentAware
addComment(), addDocument(), getComment(), getDocuments(), setComment(), setDocuments()
Constants summary
string TYPE_CLASS
#'class'
string TYPE_INTERFACE
#'interface'
string TYPE_TRAIT
#'trait'
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0