yxorP Documentation

RunOnRequirement
in package

Table of Contents

SERVERLESS_ALLOW  = 'allow'
SERVERLESS_FORBID  = 'forbid'
SERVERLESS_REQUIRE  = 'require'
TOPOLOGY_LOAD_BALANCED  = 'load-balanced'
TOPOLOGY_REPLICASET  = 'replicaset'
TOPOLOGY_SHARDED  = 'sharded'
TOPOLOGY_SHARDED_REPLICASET  = 'sharded-replicaset'
TOPOLOGY_SINGLE  = 'single'
VERSION_PATTERN  = '/^[0-9]+(\\.[0-9]+){1,2}$/'
$auth  : bool
$maxServerVersion  : string
$minServerVersion  : string
$serverless  : string
$serverParameters  : stdClass
$supportedServerless  : array<string|int, mixed>
$supportedTopologies  : array<string|int, mixed>
$topologies  : array<string|int, mixed>
__construct()  : mixed
isSatisfied()  : bool
isTopologySatisfied()  : bool

Constants

TOPOLOGY_LOAD_BALANCED

public mixed TOPOLOGY_LOAD_BALANCED = 'load-balanced'

TOPOLOGY_SHARDED_REPLICASET

public mixed TOPOLOGY_SHARDED_REPLICASET = 'sharded-replicaset'

VERSION_PATTERN

public mixed VERSION_PATTERN = '/^[0-9]+(\\.[0-9]+){1,2}$/'

Properties

$supportedServerless

private static array<string|int, mixed> $supportedServerless = [self::SERVERLESS_REQUIRE, self::SERVERLESS_FORBID, self::SERVERLESS_ALLOW]

$supportedTopologies

private static array<string|int, mixed> $supportedTopologies = [self::TOPOLOGY_SINGLE, self::TOPOLOGY_REPLICASET, self::TOPOLOGY_SHARDED, self::TOPOLOGY_SHARDED_REPLICASET, self::TOPOLOGY_LOAD_BALANCED]

Methods

__construct()

public __construct(stdClass $o) : mixed
Parameters
$o : stdClass
Return values
mixed

isSatisfied()

public isSatisfied(string $serverVersion, string $topology, stdClass $serverParameters, bool $isAuthenticated, bool $isServerless) : bool
Parameters
$serverVersion : string
$topology : string
$serverParameters : stdClass
$isAuthenticated : bool
$isServerless : bool
Return values
bool

isTopologySatisfied()

private isTopologySatisfied(string $topology) : bool
Parameters
$topology : string
Return values
bool

Search results