/** * Creates a reporter from a callable * * @param callable $init * @param OutputInterface $output * @param EventEmitterInterface $eventEmitter */ public function __construct(callable $init, OutputInterface $output, EventEmitterInterface $eventEmitter, Context $context) { $this->initFn = $init; parent::__construct($output, $eventEmitter, $context); }
/** * Creates a reporter from a callable * * @param callable $init * @param Configuration $configuration * @param OutputInterface $output * @param EventEmitterInterface $eventEmitter */ public function __construct(callable $init, Configuration $configuration, OutputInterface $output, EventEmitterInterface $eventEmitter) { $this->initFn = $init; parent::__construct($configuration, $output, $eventEmitter); }