* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team * */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Protocol\Statusdat; class PrintableObject { public function __toString() { if (isset($this->contact_name)) { return $this->contact_name; } else if (isset($this->service_description)) { return $this->service_description; } else if (isset($this->host_name)) { return $this->host_name; } return ''; } }