public function __construct(Process $process, HandlerInterface $handler = null) { $this->handler = $handler ?: $this->getDefaultHandler(); $this->process = $process; }