public static function createFromConsoleEvent(BaseConsoleEvent $e, $startTime = null, $executionTime = null)
    {
        if (static::support($e)) {
            return new static($e, $startTime, $executionTime);
        } else {
            throw \InvalidArgumentException('Invalid event type.');
        }
    }
public static function createFromConsoleEvent(BaseConsoleEvent $e, $startTime = null, $executionTime = null)
    {
        if (static::support($e)) {
            return new static($e, $startTime, $executionTime);
        } else {
            throw \InvalidArgumentException('Invalid event type.');
        }
    }
public static function createFromConsoleEvent ( BaseConsoleEvent $ e , $ startTime = null , $ executionTime = null ) { if ( static :: support ( $ e ) ) { return new static ( $ e , $ startTime , $ executionTime ) ; } else { throw \ InvalidArgumentException ( 'Invalid event type.' ) ; } }
Create new event object

@param BaseConsoleEvent $e
@param float            $startTime
@param float            $executionTime

@return ConsoleEvent

@throws \InvalidArgumentException
Create new event object