<?php
namespace App\Utils\BaseParser\TextCleaner; abstract class Rule { public $lineMatch = null; public $search = null; public $replace = null; public function __construct(?string $lineMatch = null, ?string $search = null, ?string $replace = null) { $this->lineMatch = $lineMatch; $this->search = $search; $this->replace = $replace; } abstract function isMatch(string $line); abstract function replace(string $line); } 