/** *This method gets and returns the table name. *@param null *@return string The table name */ public function getTable() { //check if the table name variable contains a value if (empty($this->table)) { //if table is not set yet, get a table name from this class instance $this->table = strtolower(StringUtility::singular(get_class($this))); } //return the formed table name return $this->table; }