| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class BaseAction implements Tag |
||
| 12 | { |
||
| 13 | use Attributes; |
||
|
|
|||
| 14 | use CacheStore; |
||
| 15 | use Expressions; |
||
| 16 | |||
| 17 | protected \DOMNode $node; |
||
| 18 | protected CacheContract $cache; |
||
| 19 | protected string $prefix; |
||
| 20 | protected int $ttl; |
||
| 21 | |||
| 22 | 2 | public function __construct(\DOMNode $node, CacheContract $cache, string $prefix, ?int $ttl = null) |
|
| 23 | { |
||
| 24 | 2 | $this->node = $node; |
|
| 25 | 2 | $this->cache = $cache; |
|
| 26 | 2 | $this->prefix = $prefix; |
|
| 27 | 2 | $this->ttl = $ttl; |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function handle(): ?string |
|
| 35 | } |
||
| 36 | |||
| 37 | public function process(?string $answer): void |
||
| 39 | } |
||
| 40 | |||
| 41 | 1 | protected function shiftCursor(): void |
|
| 48 | } |
||
| 49 | } |
||
| 50 |