<?php
namespace App\Utils\BaseParser; trait OptionTrait { protected $options = []; public function setOption(string $key, $value) { $this->options[$key] = $value; return $this; } public function getOption(string $key) { return $this->options[$key]; } public function getOptions() { return $this->options; } } 