public function __construct(WriterFactory $writerFactory = null) { $this->writerFactory = $writerFactory ?: new WriterFactory(); }