public function addFeature(AbstractFeature $feature) { if ($this->tableGateway instanceof TableGatewayInterface) { $feature->setTableGateway($this->tableGateway); } $this->features[] = $feature; return $this; }
public function addFeature(AbstractFeature $feature) { $this->features[] = $feature; $feature->setTableGateway($feature); return $this; }