public function check(ExerciseInterface $exercise, Input $input)
    {
        if (file_exists($input->getArgument('program'))) {
            return Success::fromCheck($this);
        }

        return Failure::fromCheckAndReason($this, sprintf('File: "%s" does not exist', $input->getArgument('program')));
    }
public function check(ExerciseInterface $exercise, Input $input)
    {
        if (file_exists($input->getArgument('program'))) {
            return Success::fromCheck($this);
        }

        return Failure::fromCheckAndReason($this, sprintf('File: "%s" does not exist', $input->getArgument('program')));
    }
public function check ( ExerciseInterface $ exercise , Input $ input ) { if ( file_exists ( $ input -> getArgument ( 'program' ) ) ) { return Success :: fromCheck ( $ this ) ; } return Failure :: fromCheckAndReason ( $ this , sprintf ( 'File: "%s" does not exist' , $ input -> getArgument ( 'program' ) ) ) ; }
Simply check that the file exists.

@param ExerciseInterface $exercise The exercise to check against.
@param Input $input The command line arguments passed to the command.
@return ResultInterface The result of the check.
Simply check that the file exists .