public __construct ( mixed $object, string $message, string $version, callable $reporter = 'elgg_deprecated_notice' ) | ||
$object | mixed | The object or string to wrap |
$message | string | The deprecation message to display when used |
$version | string | The Elgg version this was deprecated |
$reporter | callable | function called to report deprecation |
public function __construct($object, $message, $version, $reporter = 'elgg_deprecated_notice')
{
if (is_object($object)) {
$this->object = $object;
} else {
$this->string = $object;
}
$this->message = $message;
$this->version = $version;
$this->reporter = $reporter;
}