client = $client; } public function base64( string $text ): string { $this->client ->setText( $text ) ->setSize( self::SIZE ) ->setErrorCorrectionLevel( ErrorCorrectionLevel::HIGH ); return $this->client->writeDataUri(); } }