trait SmartObject

Strict class for better experience.

  • 'did you mean' hints
  • access to undeclared members throws exceptions
  • support for @property annotations
  • support for calling event handlers stored in $onEvent via onEvent()

Methods

__call(string $name, array $args)

No description

static 
__callStatic(string $name, array $args)

No description

mixed
__get(string $name)

No description

void
__set(string $name, $value)

No description

void
__unset(string $name)

No description

bool
__isset(string $name)

No description

Details

at line 28
__call(string $name, array $args)

Parameters

string $name
array $args

Exceptions

MemberAccessException

at line 50
static __callStatic(string $name, array $args)

Parameters

string $name
array $args

Exceptions

MemberAccessException

at line 60
mixed __get(string $name)

Parameters

string $name

Return Value

mixed

Exceptions

MemberAccessException if the property is not defined.

at line 85
void __set(string $name, $value)

Parameters

string $name
$value

Return Value

void

Exceptions

MemberAccessException if the property is not defined or is read-only

at line 108
void __unset(string $name)

Parameters

string $name

Return Value

void

Exceptions

MemberAccessException

at line 117
bool __isset(string $name)

Parameters

string $name

Return Value

bool