process() public method

public process ( CommitMsg $commitMsgData, Composer\IO\IOInterface $io ) : CommitMsg
$commitMsgData PhpGitHooks\Module\Configuration\Domain\CommitMsg
$io Composer\IO\IOInterface
return PhpGitHooks\Module\Configuration\Domain\CommitMsg
 /**
  * @test
  */
 public function itShouldDisableHook()
 {
     $this->shouldAsk(HookQuestions::COMMIT_MSG_HOOK, HookQuestions::DEFAULT_TOOL_ANSWER, 'n');
     $commitMsg = $this->commitMsgProcessor->process(CommitMsgStub::setUndefined(), $this->getIOInterface());
     $this->assertFalse($commitMsg->isUndefined());
     $this->assertFalse($commitMsg->isEnabled());
     $this->assertNull($commitMsg->getRegularExpression()->value());
 }
 /**
  * @param Config $configData
  *
  * @return CommitMsg
  */
 private function commitMsgProcess(Config $configData)
 {
     /** @var CommitMsg $commitMsgData */
     $commitMsgData = $configData->getCommitMsg();
     return $this->commitMsgProcessor->process($commitMsgData, $this->io);
 }