value => $this->id ]); } public static function all(array $params = []): array { return array_map(fn(array $item): Work => new Work($item[WorkTable::ID->value]), parent::list(Endpoints::WORK, $params)); } public function title(): ?string { return $this->get(WorkTable::TITLE->value); } public function summary(): string { return $this->get(WorkTable::SUMMARY->value); } public function created(): DateTimeImmutable { return new DateTimeImmutable($this->get(WorkTable::CREATED->value)); } public function tags(): array { return Tag::from($this); } public function actions(): array { return Action::from($this); } }