i know both gives same results but i am looking forward to hear about performance.
i am not sure but i think..
"
MyClass::className()
" cause that class file to be loaded as well (its Yii function whom body is just simplyget_called_class()
)"
MyClass::class
" i think this php's native class property don't load class php file and just return its name based on current namespace oruse
.
Let me know if i am right? or highlight your knowledge please.
There are many places where we just want full qualitfied class name even it's not going to be used that time. but i also don't like putting hardcoded strings (due to hard refactoring)