getExecutionState() public method

public getExecutionState ( )
示例#1
0
 /**
  * Print a warning message if the condition evaluates to TRUE.
  *
  * @param boolean $condition
  * @param string  $message
  */
 public function warnIf($condition, $message = '')
 {
     if ($condition) {
         $message = $message ?: 'Unknown Reason';
         $this->outputWriter->write(sprintf('    <comment>Warning during %s: %s</comment>', $this->version->getExecutionState(), $message));
     }
 }
 /**
  * Print a warning message if the condition evalutes to TRUE.
  *
  * @param bool $condition
  * @param string $message
  */
 public function warnIf($condition, $message = '')
 {
     $message = strlen($message) ? $message : 'Unknown Reason';
     if ($condition === true) {
         $this->outputWriter->write('    <warning>Warning during ' . $this->version->getExecutionState() . ': ' . $message . '</warning>');
     }
 }