| 1 | <?php |
||
| 5 | abstract class AbstractStep |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var callable |
||
| 9 | */ |
||
| 10 | public $function; |
||
| 11 | public $signature; |
||
| 12 | public $track; |
||
| 13 | /** |
||
| 14 | * Indicates was this step performed or not |
||
| 15 | * |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | protected $skipped; |
||
| 19 | |||
| 20 | public function __construct(callable $callable, string $signature) |
||
| 26 | |||
| 27 | public function isSkipped() |
||
| 31 | |||
| 32 | public function skip() |
||
| 36 | |||
| 37 | abstract public function __invoke(&$params, string $track); |
||
| 38 | } |
||
| 39 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.