public function load(string $class): self
    {
        $filename = $this->getFilename($class);
        if ($filename !== null) {
            (static function($__filename) {
                include_once $__filename;
            })($filename);
        }
        return $this;
    }
public function load(string $class): self
    {
        $filename = $this->getFilename($class);
        if ($filename !== null) {
            (static function($__filename) {
                include_once $__filename;
            })($filename);
        }
        return $this;
    }
public function load ( string $ class ) : self { $ filename = $ this -> getFilename ( $ class ) ; if ( $ filename !== null ) { ( static function ( $ __filename ) { include_once $ __filename ; } ) ( $ filename ) ; } return $ this ; }
Loads a class if registered.

@param string $class The class name.
@return self Returns a reference to itself.
Loads a class if registered .