You are here

class Tenants in Auth0 Single Sign On 8.2

Hierarchy

Expanded class hierarchy of Tenants

1 file declares its use of Tenants
Management.php in vendor/auth0/auth0-php/src/API/Management.php

File

vendor/auth0/auth0-php/src/API/Management/Tenants.php, line 5

Namespace

Auth0\SDK\API\Management
View source
class Tenants extends GenericResource {

  /**
   *
   * @param  mixed $fields
   * @param  mixed $include_fields
   * @return mixed
   */
  public function get($fields = null, $include_fields = null) {
    $request = $this->apiClient
      ->method('get')
      ->addPath('tenants')
      ->addPath('settings');
    if ($fields !== null) {
      if (is_array($fields)) {
        $fields = implode(',', $fields);
      }
      $request
        ->withParam('fields', $fields);
    }
    if ($include_fields !== null) {
      $request
        ->withParam('include_fields', $include_fields);
    }
    return $request
      ->call();
  }

  /**
   *
   * @param  array $data
   * @return mixed
   */
  public function update($data) {
    return $this->apiClient
      ->method('patch')
      ->addPath('tenants')
      ->addPath('settings')
      ->withBody(json_encode($data))
      ->call();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GenericResource::$apiClient protected property Injected ApiClient instance to use.
GenericResource::checkEmptyOrInvalidString protected function Check that a variable is a string and is not empty.
GenericResource::checkInvalidPermissions protected function Check for invalid permissions with an array of permissions.
GenericResource::getApiClient public function Get the injected ApiClient instance.
GenericResource::normalizeIncludeTotals protected function Normalize include_totals parameter.
GenericResource::normalizePagination protected function Normalize pagination parameters.
GenericResource::__construct public function GenericResource constructor.
Tenants::get public function
Tenants::update public function