Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/letme.watchman/vendor/sentry/sentry/src/ |
Upload File : |
<?php declare(strict_types=1); namespace Sentry; /** * This enum represents all the possible types of events that a Sentry server * supports. * * @author Stefano Arlandini <sarlandini@alice.it> */ final class EventType implements \Stringable { /** * @var string The value of the enum instance */ private $value; /** * @var array<string, self> A list of cached enum instances */ private static $instances = []; private function __construct(string $value) { $this->value = $value; } /** * Creates an instance of this enum for the "default" value. */ public static function default(): self { return self::getInstance('default'); } public static function event(): self { return self::getInstance('event'); } /** * Creates an instance of this enum for the "transaction" value. */ public static function transaction(): self { return self::getInstance('transaction'); } public static function checkIn(): self { return self::getInstance('check_in'); } public function __toString(): string { return $this->value; } private static function getInstance(string $value): self { if (!isset(self::$instances[$value])) { self::$instances[$value] = new self($value); } return self::$instances[$value]; } }