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

isUndefined() public method

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

Usage Example

 /**
  * @param CommitMsg   $commitMsgData
  * @param IOInterface $io
  *
  * @return CommitMsg
  */
 public function process(CommitMsg $commitMsgData, IOInterface $io)
 {
     $this->io = $io;
     if (true === $commitMsgData->isUndefined()) {
         $commitMsgData = CommitMsgConfigurator::configure($this->io, $commitMsgData);
     }
     return $commitMsgData;
 }