PHP Trait Nette\SmartObject

- 'did you mean' hints - access to undeclared members throws exceptions - support for @property annotations - support for calling event handlers stored in $onEvent via onEvent() - compatible with Nette\Object
Show file Open project: nette/utils

Public Methods

Method Description
__call ( $name, $args ) : mixed
__callStatic ( $name, $args ) : void
__get ( $name ) : mixed
__isset ( $name ) : boolean
__set ( $name, $value ) : void
__unset ( $name ) : void
extensionMethod ( $name, $callback = NULL ) : mixed
getReflection ( ) : ClassType | ReflectionClass

Method Details

__call() public method

public __call ( $name, $args ) : mixed
return mixed

__callStatic() public static method

public static __callStatic ( $name, $args ) : void
return void

__get() public method

public __get ( $name ) : mixed
return mixed property value

__isset() public method

public __isset ( $name ) : boolean
return boolean

__set() public method

public __set ( $name, $value ) : void
return void

__unset() public method

public __unset ( $name ) : void
return void

extensionMethod() public static method

Deprecation: use Nette\Utils\ObjectMixin::setExtensionMethod()
public static extensionMethod ( $name, $callback = NULL ) : mixed
return mixed

getReflection() public static method

Deprecation:
public static getReflection ( ) : ClassType | ReflectionClass
return Nette\Reflection\ClassType | ReflectionClass