public static function fromCheckAndExercise(CheckInterface $check, ExerciseInterface $exercise)
    {
        return new static(
            sprintf(
                'Check: "%s" cannot process exercise: "%s" with type: "%s"',
                $check->getName(),
                $exercise->getName(),
                $exercise->getType()
            )
        );
    }
public static function fromCheckAndExercise(CheckInterface $check, ExerciseInterface $exercise)
    {
        return new static(
            sprintf(
                'Check: "%s" cannot process exercise: "%s" with type: "%s"',
                $check->getName(),
                $exercise->getName(),
                $exercise->getType()
            )
        );
    }
public static function fromCheckAndExercise ( CheckInterface $ check , ExerciseInterface $ exercise ) { return new static ( sprintf ( 'Check: "%s" cannot process exercise: "%s" with type: "%s"' , $ check -> getName ( ) , $ exercise -> getName ( ) , $ exercise -> getType ( ) ) ) ; }
Static constructor to create an instance from the check & exercise.

@param CheckInterface $check The check Instance.
@param ExerciseInterface $exercise The exercise Instance.
@return static
Static constructor to create an instance from the check & exercise .