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

Breadcrumb

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

class OperatingSystem

Same name in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Resource/Detectors/OperatingSystem.php \OpenTelemetry\SDK\Resource\Detectors\OperatingSystem

@psalm-immutable

@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\Event\Runtime\OperatingSystem

Expanded class hierarchy of OperatingSystem

File

vendor/phpunit/phpunit/src/Event/Value/Runtime/OperatingSystem.php, line 20

Namespace

PHPUnit\Event\Runtime
View source
final class OperatingSystem {
    private readonly string $operatingSystem;
    private readonly string $operatingSystemFamily;
    public function __construct() {
        $this->operatingSystem = PHP_OS;
        $this->operatingSystemFamily = PHP_OS_FAMILY;
    }
    public function operatingSystem() : string {
        return $this->operatingSystem;
    }
    public function operatingSystemFamily() : string {
        return $this->operatingSystemFamily;
    }

}

Members

Title Sort descending Modifiers Object type Summary
OperatingSystem::$operatingSystem private property
OperatingSystem::$operatingSystemFamily private property
OperatingSystem::operatingSystem public function
OperatingSystem::operatingSystemFamily public function
OperatingSystem::__construct public function
RSS feed
Powered by Drupal