setLabel($label); } /** * Set the table header * * @param array $header The header columns * @return void */ public function setHeader($header) { $this->_header = $header; } /** * Append a row to the end of the table. * * @param array $row An array of column values representing a row. * @return void */ public function addRow($row) { $this->_rows[] = $row; } /** * Get the actual message to be sent in its final format. * * @return mixed Returns the message to be sent. */ public function getMessage() { $table = $this->_rows; array_unshift($table,$this->_header); return $table; } }