public function getTable() { if (!$this->table) { /** * @var Table $tableClass */ $table = Table::getInstance(); $this->setTable($table); } return $this->table; }