Fixes issue #172: Added Object::className().

This commit is contained in:
Qiang Xue
2013-05-08 09:39:34 -04:00
parent 2dd51d5b46
commit c5bad9ea1b
4 changed files with 18 additions and 4 deletions

View File

@@ -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: