| Total Complexity | 3 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | abstract class AbstractStep implements StepInterface |
||
| 28 | { |
||
| 29 | /** @var Builder */ |
||
| 30 | protected $builder; |
||
| 31 | |||
| 32 | /** @var Config */ |
||
| 33 | protected $config; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Configuration options for the step. |
||
| 37 | * @var Builder::OPTIONS |
||
| 38 | */ |
||
| 39 | protected $options; |
||
| 40 | |||
| 41 | /** @var bool */ |
||
| 42 | protected $canProcess = false; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | 1 | public function __construct(Builder $builder) |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | 1 | public function init(array $options): void |
|
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | * |
||
| 65 | * If init() is used, true by default. |
||
| 66 | */ |
||
| 67 | 1 | public function canProcess(): bool |
|
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * {@inheritdoc} |
||
| 74 | */ |
||
| 75 | abstract public function process(): void; |
||
| 76 | } |
||
| 77 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..