UserRole::class, 'profile' => 'array', 'expires_at' => 'immutable_datetime', 'accepted_at' => 'immutable_datetime', 'revoked_at' => 'immutable_datetime', ]; } public function isUsable(): bool { return $this->accepted_at === null && $this->revoked_at === null && $this->expires_at->isFuture(); } }