Back to CMSObject class

Method __toString

public string
__toString
()
Magic method to convert the object to a string gracefully.
Returns
  • string The classname.
Since
  • 1.7.0
Deprecated
  • 3.1.4
Class: CMSObject
Project: Joomla

Method __toString - Source code

/**
 * Magic method to convert the object to a string gracefully.
 *
 * @return  string  The classname.
 *
 * @since   1.7.0
 * @deprecated 3.1.4  Classes should provide their own __toString() implementation.
 */
public function __toString()
{
    return \get_class($this);
}