Interface \Prado\Util\IInstanceCheck
IInstanceCheck This interface allows objects to determine their own
'instanceof' results when {@see \Prado\TComponent::isa} is called. This is
important with behaviors because behaviors may want to look like
particular objects other than themselves.
Namespace: \Prado\UtilAuthor: Brad Anderson <javalizard@mac.com>
Since: 3.2.3
public
|
isinstanceof(string $class[, null|object $instance = null ]) : null|bool
The method checks $this or, if needed, the parameter $instance is of type
class. In the case of a Class Behavior, the instance to which the behavior
is attached may be important to determine if $this is an instance
of a particular class.
|
|