TimestampBehavior::class, ], [ 'class' => PrimaryKeyValueBehavior::class, 'value' => function() { return Uuid::uuid4()->toString(); }, ], ]; } public function getAccount() : ActiveQuery { return $this->hasOne(Account::class, ['id' => 'account_id']); } public function isActual() : bool { return $this->timestamp + self::LIFETIME >= time(); } }