Peridot\Reporter\AbstractBaseReporter::__construct PHP Method

__construct() public method

public __construct ( Configuration $configuration, Symfony\Component\Console\Output\OutputInterface $output, Evenement\EventEmitterInterface $eventEmitter )
$configuration Peridot\Configuration
$output Symfony\Component\Console\Output\OutputInterface
$eventEmitter Evenement\EventEmitterInterface
    public function __construct(Configuration $configuration, OutputInterface $output, EventEmitterInterface $eventEmitter)
    {
        $this->configuration = $configuration;
        $this->output = $output;
        $this->eventEmitter = $eventEmitter;
        $this->registerSymbols();
        $this->registerEvents();
        $this->init();
    }

Usage Example

 /**
  * 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);
 }
All Usage Examples Of Peridot\Reporter\AbstractBaseReporter::__construct