silverstripe-framework/tests/php/Dev/DeprecationTest/TestDeprecation.php

19 lines
387 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Dev\Tests\DeprecationTest;
use SilverStripe\Dev\Deprecation;
class TestDeprecation extends Deprecation
{
public static function get_module()
{
return self::get_calling_module_from_trace(debug_backtrace(0));
}
2016-10-14 03:30:05 +02:00
public static function get_method()
{
return self::get_called_method_from_trace(debug_backtrace(0));
}
2016-10-14 03:30:05 +02:00
}