'integer', 'types' => 'array', 'effective_at' => 'date:Y-m-d', 'created_by' => 'integer', 'updated_by' => 'integer', ]; public function statusLabel(): string { return $this->status === self::STATUS_ACTIVE ? '已启用' : '已停用'; } public function typeLabel(): string { return implode('、', array_values(array_filter(array_map( static fn ($type): string => trim((string) $type), (array) $this->types, )))); } }