/** * Set the titles for this collection using the titles from a Table object. * * @param Table $table * @return $this */ public function setTitlesFromTable(Table $table) { $this->title = $table->getPluralTitle(); $this->singularTitle = $table->getSingularTitle(); $this->pluralTitle = $table->getPluralTitle(); return $this; }