- var_dump: documentation ( source)
- debug_backtrace: documentation ( source)
<?php
trait Values {
/**
* Provides a template method for enum values representing the method name.
* This can be aliased in an enum class.
*
* @return static|null
*/
final public static function ORIGINAL() {
$MethodName = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['function'];
var_dump($MethodName);;
}
}
class Imp {
use Values {
ORIGINAL as RENAMED;
}
}
Imp::RENAMED();