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

Breadcrumb

  1. Drupal Core 11.1.x

ClockFactory.php

Namespace

OpenTelemetry\SDK\Common\Time

File

vendor/open-telemetry/sdk/Common/Time/ClockFactory.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Common\Time;

use OpenTelemetry\API\Common\Time\Clock;
use OpenTelemetry\API\Common\Time\ClockInterface;

/**
 * @deprecated Use OpenTelemetry\API\Common\Time\Clock
 * @codeCoverageIgnore
 */
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();
        }
    }

}

Classes

Title Deprecated Summary
ClockFactory

Use OpenTelemetry\API\Common\Time\Clock

@codeCoverageIgnore

API Navigation

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