accessType = $accessType; $this->start = $start; $this->end = $end; } /** * Serializes to JSON * * @return array|mixed */ #[\ReturnTypeWillChange] public function jsonSerialize() { return ArrayUtils::safeFilter( [ 'access_type' => $this->accessType, 'start' => Utils::formatDate($this->start), 'end' => Utils::formatDate($this->end), ] ); } }