lithium\aop\Chain::method()
Gets the method name associated with this filter chain. This is the method being filtered.
Parameters
-
boolean
$full
Whether to include the class name, defaults to
false
.
Returns
stringWhen $full is true
returns a string with pattern
<CLASS>::<METHOD>
, else returns just the method name.
Source
public function method($full = false) {
$message = '`$chain->method()` has been deprecated.';
trigger_error($message, E_USER_DEPRECATED);
$class = is_string($this->_class) ? $this->_class : get_class($this->_class);
return $full ? $class . '::' . $this->_method : $this->_method;
}