Skip to content

Commit

Permalink
Set some methods to protected to allow overrides (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-m authored Oct 30, 2023
1 parent b54e87a commit a75370f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FileFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class FileFetcher extends AbstractPersistentJob
{

private array $customProcessorClasses = [];
protected array $customProcessorClasses = [];

/**
* Constructor.
Expand Down Expand Up @@ -71,7 +71,7 @@ protected function runIt()
return $info['result'];
}

private function getProcessors()
protected function getProcessors(): array
{
$processors = self::getDefaultProcessors();
foreach ($this->customProcessorClasses as $processorClass) {
Expand All @@ -90,7 +90,7 @@ private static function getDefaultProcessors()
return $processors;
}

private function getProcessor(): ProcessorInterface
protected function getProcessor(): ProcessorInterface
{
return $this->getProcessors()[$this->getStateProperty('processor')];
}
Expand All @@ -109,7 +109,7 @@ private function validateConfig($config): array
return $config;
}

private function setProcessors($config)
protected function setProcessors($config)
{
if (!isset($config['processors'])) {
return;
Expand Down

0 comments on commit a75370f

Please sign in to comment.