tacnoman/dephpug

View on GitHub
src/Dephpug/Exporter/Type/StringExporter.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dephpug\Exporter\Type;

use Dephpug\Exporter\iExporter;

class StringExporter implements iExporter
{
    public static function getType()
    {
        return 'string';
    }

    public function getExportedVar($xml)
    {
        $content = base64_decode((string) $xml->property);

        return "{$content}";
    }
}