/** * Helper class to default sequence event processing * @param array $events * @param callable $callable */ function __construct(array $events, callable $callable) { parent::__construct(); foreach ($events as $e) { $this->addStream($e); } $this->sequence($events, $callable); }
/** * Helper class to default any event processing * @param mixed $stream * @param callable $callable */ function __construct($stream, callable $callable) { parent::__construct($stream); $this->any($stream, $callable); }
/** * Helper class to default periodic processing * @param integer $seconds * @param callable $callable */ function __construct($seconds, callable $callable) { parent::__construct(); $this->every($seconds, $callable); }
/** * Helper class to default after event processing * @param integer $amount * @param mixed $stream * @param callable $callable */ function __construct($amount, $stream, callable $callable) { parent::__construct($stream); $this->after($amount, $stream, $callable); }