mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
Fixes issue #172: Added Object::className().
This commit is contained in:
@@ -14,6 +14,14 @@ namespace yii\base;
|
||||
*/
|
||||
class Object
|
||||
{
|
||||
/**
|
||||
* @return string the fully qualified name of this class.
|
||||
*/
|
||||
public static function className()
|
||||
{
|
||||
return get_called_class();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* The default implementation does two things:
|
||||
|
||||
Reference in New Issue
Block a user