AttributionWindow
Rasuvaeff\Yii3AbTesting\AttributionWindow
Class · rasuvaeff/yii3-ab-testing · Source
How long after an exposure a conversion still counts for it.
A report is meaningless without this bound: without a window, a conversion months later is credited to an experiment the subject no longer sees. The contract lives in the core so every reporting backend answers with the same rule; the query implementation lives in the analytics package.
Constants
DEFAULT_DAYS
php
DEFAULT_DAYS = 7The value used when an application does not choose one.
Properties
| Property | Type | Readonly | Description |
|---|---|---|---|
seconds | int | yes |
Methods
default()
php
static default(): selfofDays()
php
static ofDays(int $days): selfofSeconds()
php
static ofSeconds(int $seconds): self