params = func_get_args(); array_shift( $this->params ); $this->callback = $callback; } /** * Get the string generated from the callback * * @return string */ public function __toString() { if ( $this->result === null ) { $this->result = call_user_func_array( $this->callback, $this->params ); } return $this->result; } }