PhpGitHooks\Module\Configuration\Domain\PhpLint::isUndefined PHP Method

isUndefined() public method

public isUndefined ( ) : boolean
return boolean
    public function isUndefined()
    {
        return $this->undefined->value();
    }

Usage Example

 /**
  * @param IOInterface $io
  * @param PhpLint     $phpLint
  *
  * @return PhpLint
  */
 public static function configure(IOInterface $io, PhpLint $phpLint)
 {
     if (true === $phpLint->isUndefined()) {
         $answer = $io->ask(HookQuestions::PHPLINT_TOOL, HookQuestions::DEFAULT_TOOL_ANSWER);
         $phpLint = $phpLint->setEnabled(new Enabled(HookQuestions::DEFAULT_TOOL_ANSWER === strtoupper($answer)));
     }
     return $phpLint;
 }