| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | abstract class AbstractOuvrageHandler implements OptimizeHandlerInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var OuvrageTemplate |
||
| 22 | */ |
||
| 23 | protected $ouvrage; |
||
| 24 | /** |
||
| 25 | * @var OptiStatus |
||
| 26 | */ |
||
| 27 | protected $optiStatus; |
||
| 28 | |||
| 29 | public function __construct(OuvrageTemplate $ouvrage, OptiStatus $summary) |
||
| 30 | { |
||
| 31 | $this->ouvrage = $ouvrage; |
||
| 32 | $this->optiStatus = $summary; |
||
| 33 | // echo get_class($this) . "\n"; |
||
| 34 | } |
||
| 35 | |||
| 36 | abstract public function handle(); |
||
| 37 | |||
| 38 | // methods alias |
||
| 39 | protected function hasParamValue(string $string): bool |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function getParam(string $string): ?string |
||
| 45 | { |
||
| 46 | return $this->ouvrage->getParam($string); |
||
| 47 | } |
||
| 48 | |||
| 49 | protected function addSummaryLog(string $string): OptiStatus |
||
| 50 | { |
||
| 51 | $this->optiStatus->addSummaryLog($string); |
||
| 52 | return $this->optiStatus; |
||
| 53 | } |
||
| 54 | |||
| 55 | protected function unsetParam(string $string): AbstractWikiTemplate |
||
| 59 | } |
||
| 60 | |||
| 61 | protected function setParam(string $string, string $value): AbstractWikiTemplate |
||
| 65 | } |
||
| 66 | } |