MyAllocator PMS PHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • MyAllocator
    • phpsdk
      • src
        • Api
        • Exception
        • Object
        • Util
  • PHP

Classes

  • Common
  • Requestor

Class Common

Common methods used in the SDK.

Abstract
Namespace: MyAllocator\phpsdk\src\Util
Located at Util/Common.php

Methods summary

public static array(Auth,
# getAuthEnv( array $keys = null, string $debug = false )

Get an auth object from the local ENV or test data.

Get an auth object from the local ENV or test data.

Parameters

$keys
The authentication keys to set.
$debug
Enable debug.

Returns

array(Auth,
string) Authentication object and bool if pulled from ENV.

Throws

MyAllocator\phpsdk\src\Exception\ApiException
If no keys supplied.
public static string
# getClassName( object|string $object = null )

Returns the name of a class using get_class with the namespaces stripped.

Returns the name of a class using get_class with the namespaces stripped.

Parameters

$object
Object or Class Name to retrieve name

Returns

string
Name of class with namespaces stripped

Magic methods summary

MyAllocator PMS PHP SDK API documentation generated by ApiGen