public function __construct(Writer $writer = null, RendererInterface $format = null) { $format = $format ?: new Svg(); $this->writer = $writer ?: new Writer($format); }