DerDu/MOC-Framework-Mark-V

View on GitHub
Core/AutoLoader/Component/Bridge/Bridge.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace MOC\V\Core\AutoLoader\Component\Bridge;

use MOC\V\Core\AutoLoader\Component\IBridgeInterface;

/**
 * Class Bridge
 *
 * @package MOC\V\Core\AutoLoader\Component\Bridge
 */
abstract class Bridge implements IBridgeInterface
{

    /**
     * @return IBridgeInterface
     */
    public function registerLoader()
    {

        spl_autoload_register(array($this, 'loadSourceFile'), true, false);
        return $this;
    }

    /**
     * @return IBridgeInterface
     */
    public function unregisterLoader()
    {

        spl_autoload_unregister(array($this, 'loadSourceFile'));
        return $this;
    }

}