for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace einfach\operation\step;
abstract class AbstractStep
{
/**
* @var callable
*/
public $function;
public $signature;
public $track;
* Indicates was this step performed or not
*
* @var bool
protected $skipped;
public function __construct(callable $callable, string $signature)
$this->function = $callable;
$this->signature = $signature;
$this->skipped = false;
}
public function isSkipped()
return true == $this->skipped;
===
When comparing two booleans, it is generally considered safer to use the strict comparison operator.
public function skip()
return $this->skipped = true;
abstract public function __invoke(&$params, string $track);
When comparing two booleans, it is generally considered safer to use the strict comparison operator.