'albums.name', self::ARTIST_NAME => 'artists.name', self::DATE_ADDED => 'songs.created_at', self::DATE_MODIFIED => 'songs.updated_at', default => $this->value, }; } public function isDate(): bool { return in_array($this, [self::LAST_PLAYED, self::DATE_ADDED, self::DATE_MODIFIED], true); } }