AssignmentContext
Rasuvaeff\Yii3AbTesting\AssignmentContext
Class · rasuvaeff/yii3-ab-testing · Source
Constructor
php
new AssignmentContext(?string $environment = null, array $attributes = [])Methods
empty()
php
static empty(): selfforEnvironment()
php
static forEnvironment(string $environment): selfgetEnvironment()
php
getEnvironment(): ?stringgetAttributes()
php
getAttributes(): arraygetAttribute()
php
getAttribute(string $name): string|int|float|bool|nullwithEnvironment()
php
withEnvironment(string $environment): selfwithAttribute()
php
withAttribute(string $name, string|int|float|bool $value): self