Deployer\Task\Task::isForStages PHP Метод

isForStages() публичный Метод

Decide to run or not to run for these stages.
public isForStages ( $stages ) : boolean
$stages
Результат boolean
    public function isForStages($stages)
    {
        if (empty($this->onlyForStage)) {
            return true;
        } else {
            return count(array_intersect((array) $stages, array_keys($this->onlyForStage))) > 0;
        }
    }