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;
}
}