(new Action())->assign($item), parent::list(Endpoints::WORK_ACTIONS, $params)); } public static function from(Work $work): array { return self::all([ ActionsTable::REF_WORK_ID->value => $work->id ]); } public function icon_prepended(): ?string { return $this->get(ActionsTable::ICON_PREPENDED->value); } public function icon_appended(): ?string { return $this->get(ActionsTable::ICON_APPENDED->value); } public function display_text(): string { return $this->get(ActionsTable::DISPLAY_TEXT->value); } public function href(): ?string { return $this->get(ActionsTable::HREF->value); } public function classes(): array { return $this->get(ActionsTable::CLASS_LIST->value) ? explode(",", $this->get(ActionsTable::CLASS_LIST->value)) : []; } }