tacnoman/dephpug

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dephpug\Exporter\Type;

use Dephpug\Exporter\iExporter;

class BoolExporter implements iExporter
{
    public static function getType()
    {
        return 'bool';
    }

    public function getExportedVar($xml)
    {
        return (1 == $xml->property)
                  ? 'true'
                  : 'false';
    }
}