/** * Allow for the object to be "printed" out in a human readable form. This is * useful for logging. * * @return string */ public function __toString() { if ($this->timer !== null) { $this->values['elapsedTime'] = $this->timer->getElapsedTime(); } return $this->name . '|' . uArray::assocArrayToPrintableString($this->values); }
/** * Helper method to write the contents of the parameter holder to a string. * This can be useful for logging purposes. * * @return String A serialized, human readable version of the class. */ public function __toString() { return $this->name . '|' . uArray::assocArrayToPrintableString($this->parameters); }