abstract class ClassLike

Class/Interface/Trait/Enum description.

Constants

VisibilityPublic

VisibilityProtected

VisibilityPrivate

deprecated VISIBILITY_PUBLIC

deprecated VISIBILITY_PROTECTED

deprecated VISIBILITY_PRIVATE

Methods

static ClassLike
from(string|object $class, bool $withBodies = false, bool|null $materializeTraits = null)

No description

static ClassLike
withBodiesFrom(string|object $class) deprecated

No description

static ClassLike
fromCode(string $code)

No description

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

No description

string
__toString()

No description

PhpNamespace|null
getNamespace() deprecated

No description

setName(string|null $name)

No description

string|null
getName()

No description

bool
isClass()

No description

bool
isInterface()

No description

bool
isTrait()

No description

bool
isEnum()

No description

void
validateNames(array $names)

No description

void
validate()

No description

Details

at line 39
static ClassLike from(string|object $class, bool $withBodies = false, bool|null $materializeTraits = null)

No description

Parameters

string|object $class
bool $withBodies
bool|null $materializeTraits

Return Value

ClassLike

at line 50
static ClassLike withBodiesFrom(string|object $class) deprecated

deprecated use from(..., withBodies: true)

No description

Parameters

string|object $class

Return Value

ClassLike

at line 58
static ClassLike fromCode(string $code)

No description

Parameters

string $code

Return Value

ClassLike

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

No description

Parameters

string $name
PhpNamespace|null $namespace

at line 72
string __toString()

No description

Return Value

string

at line 79
PhpNamespace|null getNamespace() deprecated

deprecated an object can be in multiple namespaces

No description

Return Value

PhpNamespace|null

at line 85
ClassLike setName(string|null $name)

No description

Parameters

string|null $name

Return Value

ClassLike

at line 96
string|null getName()

No description

Return Value

string|null

at line 102
bool isClass()

No description

Return Value

bool

at line 108
bool isInterface()

No description

Return Value

bool

at line 114
bool isTrait()

No description

Return Value

bool

at line 120
bool isEnum()

No description

Return Value

bool

at line 127
protected void validateNames(array $names)

No description

Parameters

array $names

Return Value

void

at line 137
void validate()

No description

Return Value

void

Traits