columnToRead = $columnToRead; $this->minPositiveValue = $minPositiveValue; $this->minNegativeValue = $minNegativeValue; } public function filter($table) { if (!$this->minPositiveValue && !$this->minNegativeValue) { return; } foreach ($table->getRows() as $key => $row) { $growthNumeric = $row->getColumn($this->columnToRead); if ($growthNumeric >= $this->minPositiveValue && $growthNumeric >= 0) { continue; } elseif ($growthNumeric <= $this->minNegativeValue && $growthNumeric < 0) { continue; } $table->deleteRow($key); } } }