Skip to content

AssignmentContext ​

Rasuvaeff\Yii3AbTesting\AssignmentContext

Class · rasuvaeff/yii3-ab-testing · Source

Constructor ​

php
new AssignmentContext(?string $environment = null, array $attributes = [])

Methods ​

empty() ​

php
static empty(): self

forEnvironment() ​

php
static forEnvironment(string $environment): self

getEnvironment() ​

php
getEnvironment(): ?string

getAttributes() ​

php
getAttributes(): array

getAttribute() ​

php
getAttribute(string $name): string|int|float|bool|null

withEnvironment() ​

php
withEnvironment(string $environment): self

withAttribute() ​

php
withAttribute(string $name, string|int|float|bool $value): self