client = new QrCode(); } /** * @inheritdoc */ public function base64($text) { $this->client ->setText($text) ->setSize(QrClientInterface::SIZE) ->setErrorCorrection('medium'); return $this->client->getDataUri(); } }