mirror of
https://github.com/elyby/accounts.git
synced 2024-11-01 00:13:06 +05:30
20 lines
463 B
PHP
20 lines
463 B
PHP
|
<?php
|
||
|
namespace api\modules\session\exceptions;
|
||
|
|
||
|
use ReflectionClass;
|
||
|
use yii\web\HttpException;
|
||
|
|
||
|
class SessionServerException extends HttpException {
|
||
|
|
||
|
/**
|
||
|
* Рефлексия быстрее, как ни странно:
|
||
|
* @url https://coderwall.com/p/cpxxxw/php-get-class-name-without-namespace#comment_19313
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getName() {
|
||
|
return (new ReflectionClass($this))->getShortName();
|
||
|
}
|
||
|
|
||
|
}
|