_init(ResourceModel\Category::class); } /** * @return int */ public function getId() { return (int) parent::getId(); } /** * Get identities * * @return array */ public function getIdentities(): array { return [self::CACHE_TAG . '_' . $this->getId()]; } /** * @inheritDoc */ public function isEnabled(): bool { return (bool) $this->getData(self::STATUS); } /** * @inheritDoc */ public function setStatus(bool $status): CategoryInterface { return $this->setData(self::STATUS, $status); } /** * @inheritDoc */ public function isPreChecked(): bool { return (bool) $this->getData(self::IS_PRE_CHECKED); } /** * @inheritDoc */ public function setIsPreChecked(bool $flag): CategoryInterface { return $this->setData(self::IS_PRE_CHECKED, $flag); } /** * @inheritDoc */ public function isEssential(): bool { return (bool) $this->getData(self::IS_ESSENTIAL); } /** * @inheritDoc */ public function setIsEssential(bool $isEssential): CategoryInterface { return $this->setData(self::IS_ESSENTIAL, $isEssential); } /** * @inheritDoc */ public function getKey(): string { return (string) $this->getData(self::KEY); } /** * @inheritDoc */ public function setKey(string $key): CategoryInterface { return $this->setData(self::KEY, $key); } /** * @inheritDoc */ public function getName(): string { return (string) $this->getData(self::NAME); } /** * @inheritDoc */ public function setName(string $name): CategoryInterface { return $this->setData(self::NAME, $name); } /** * @inheritDoc */ public function getDescription(): string { return (string) $this->getData(self::DESCRIPTION); } /** * @inheritDoc */ public function setDescription(string $description): CategoryInterface { return $this->setData(self::DESCRIPTION, $description); } /** * @inheritDoc */ public function getSortOrder(): int { return (int) $this->getData(self::SORT_ORDER); } /** * @inheritDoc */ public function setSortOrder(int $sortOrder): CategoryInterface { return $this->setData(self::SORT_ORDER, $sortOrder); } /** * @inheritDoc */ public function getHeadScripts(): string { return (string) $this->getData(self::HEAD_SCRIPTS); } /** * @inheritDoc */ public function setHeadScripts(string $headScripts): CategoryInterface { return $this->setData(self::HEAD_SCRIPTS, $headScripts); } /** * @inheritDoc */ public function getFooterMiscellaneousHtml(): string { return (string) $this->getData(self::FOOTER_MISCELLANEOUS_HTML); } /** * @inheritDoc */ public function setFooterMiscellaneousHtml(string $footerMiscellaneousHtml): CategoryInterface { return $this->setData(self::FOOTER_MISCELLANEOUS_HTML, $footerMiscellaneousHtml); } }