Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ClockFactory.php

class ClockFactory

@codeCoverageIgnore

Hierarchy

  • class \OpenTelemetry\SDK\Common\Time\ClockFactory

Expanded class hierarchy of ClockFactory

Deprecated

Use OpenTelemetry\API\Common\Time\Clock

File

vendor/open-telemetry/sdk/Common/Time/ClockFactory.php, line 14

Namespace

OpenTelemetry\SDK\Common\Time
View source
class ClockFactory {
    public static function getDefault() : ClockInterface {
        return Clock::getDefault();
    }
    public static function setDefault(?ClockInterface $clock) : void {
        if ($clock !== null) {
            Clock::setDefault($clock);
        }
        else {
            Clock::reset();
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary
ClockFactory::getDefault public static function
ClockFactory::setDefault public static function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal