final class ClassType extends ClassLike

Class description.

Constants

deprecated TYPE_CLASS

deprecated TYPE_INTERFACE

deprecated TYPE_TRAIT

deprecated TYPE_ENUM

Methods

static ClassType
class(string|null $name) deprecated

No description

static InterfaceType
interface(string $name) deprecated

No description

static TraitType
trait(string $name) deprecated

No description

static EnumType
enum(string $name) deprecated

No description

__construct(string $name = null, PhpNamespace|null $namespace = null)

No description

setClass() deprecated

No description

bool
isClass()

No description

setInterface() deprecated

No description

bool
isInterface()

No description

setTrait() deprecated

No description

bool
isTrait()

No description

setType(string $type) deprecated

No description

string
getType() deprecated

No description

setFinal(bool $state = true)

No description

bool
isFinal()

No description

setAbstract(bool $state = true)

No description

bool
isAbstract()

No description

setExtends(string|null $name)

No description

string|null
getExtends()

No description

setImplements(array $names)

No description

array
getImplements()

No description

addImplement(string $name)

No description

removeImplement(string $name)

No description

addMember(TraitUse $member)

No description

void
validate()

No description

__clone()

No description

Details

at line 45
static ClassType class(string|null $name) deprecated

deprecated create object using 'new Nette\PhpGenerator\ClassType'

No description

Parameters

string|null $name

Return Value

ClassType

at line 52
static InterfaceType interface(string $name) deprecated

deprecated create object using 'new Nette\PhpGenerator\InterfaceType'

No description

Parameters

string $name

Return Value

InterfaceType

at line 59
static TraitType trait(string $name) deprecated

deprecated create object using 'new Nette\PhpGenerator\TraitType'

No description

Parameters

string $name

Return Value

TraitType

at line 66
static EnumType enum(string $name) deprecated

deprecated create object using 'new Nette\PhpGenerator\EnumType'

No description

Parameters

string $name

Return Value

EnumType

at line 72
__construct(string $name = null, PhpNamespace|null $namespace = null)

No description

Parameters

string $name
PhpNamespace|null $namespace

at line 84
ClassType setClass() deprecated

deprecated

No description

Return Value

ClassType

at line 92
bool isClass()

No description

Return Value

bool

at line 99
ClassType setInterface() deprecated

deprecated create object using 'new Nette\PhpGenerator\InterfaceType'

No description

Return Value

ClassType

at line 107
bool isInterface()

No description

Return Value

bool

at line 114
ClassType setTrait() deprecated

deprecated create object using 'new Nette\PhpGenerator\TraitType'

No description

Return Value

ClassType

at line 122
bool isTrait()

No description

Return Value

bool

at line 129
ClassType setType(string $type) deprecated

deprecated create object using 'new Nette\PhpGenerator\InterfaceType' or 'TraitType'

No description

Parameters

string $type

Return Value

ClassType

at line 143
string getType() deprecated

deprecated

No description

Return Value

string

at line 149
ClassType setFinal(bool $state = true)

No description

Parameters

bool $state

Return Value

ClassType

at line 156
bool isFinal()

No description

Return Value

bool

at line 162
ClassType setAbstract(bool $state = true)

No description

Parameters

bool $state

Return Value

ClassType

at line 169
bool isAbstract()

No description

Return Value

bool

at line 175
ClassType setExtends(string|null $name)

No description

Parameters

string|null $name

Return Value

ClassType

at line 185
string|null getExtends()

No description

Return Value

string|null

at line 194
ClassType setImplements(array $names)

No description

Parameters

array $names

Return Value

ClassType

at line 203
array getImplements()

No description

Return Value

array

at line 209
ClassType addImplement(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 217
ClassType removeImplement(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 224
ClassType addMember(TraitUse $member)

No description

Parameters

TraitUse $member

Return Value

ClassType

at line 242
void validate()

No description

Return Value

void

Exceptions

InvalidStateException

at line 254
__clone()

No description

Traits