Aerospike\GeoJSON\Autoloader::load PHP Method

load() public static method

The loading function for a $class_name in the \Aerospike\GeoJSON namespace
public static load ( string $class_name )
$class_name string
    public static function load($class_name)
    {
        $parts = explode('\\', $class_name);
        if ($parts[0] == "Aerospike" && $parts[1] == "GeoJSON") {
            if (count($parts) == 2) {
                require __DIR__ . DIRECTORY_SEPARATOR . 'GeoJSON.php';
            } elseif ($parts[2] == 'Serializable') {
                require __DIR__ . DIRECTORY_SEPARATOR . 'Serializable.php';
            }
        }
    }