public function getInstructions($build_phase)
    {
        $required = [];
        foreach ($this->instructions as $instruction) {
            if ($instruction->getBuildPhase() === $build_phase) {
                $required[] = $instruction;
            }
        }
        return $required;
    }
public function getInstructions($build_phase)
    {
        $required = [];
        foreach ($this->instructions as $instruction) {
            if ($instruction->getBuildPhase() === $build_phase) {
                $required[] = $instruction;
            }
        }
        return $required;
    }
public function getInstructions ( $ build_phase ) { $ required = [ ] ; foreach ( $ this -> instructions as $ instruction ) { if ( $ instruction -> getBuildPhase ( ) === $ build_phase ) { $ required [ ] = $ instruction ; } } return $ required ; }
Returns instructions for specified build phase.

@param int $build_phase
@return InstructionInterface[]
Returns instructions for specified build phase .