![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-media-gallery/Model/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\MediaGallery\Model; use Magento\MediaGalleryApi\Api\Data\KeywordExtensionInterface; use Magento\MediaGalleryApi\Api\Data\KeywordInterface; /** * Asset's Keyword */ class Keyword implements KeywordInterface { /** * @var int */ private $id; /** * @var string */ private $keyword; /** * @var KeywordExtensionInterface|null */ private $extensionAttributes; /** * @param string $keyword * @param int|null $id * @param KeywordExtensionInterface|null $extensionAttributes */ public function __construct( string $keyword, ?int $id = null, ?KeywordExtensionInterface $extensionAttributes = null ) { $this->keyword = $keyword; $this->id = $id; $this->extensionAttributes = $extensionAttributes; } /** * @inheritdoc */ public function getId(): ?int { return $this->id; } /** * @inheritdoc */ public function getKeyword(): string { return $this->keyword; } /** * @inheritdoc */ public function getExtensionAttributes(): ?KeywordExtensionInterface { return $this->extensionAttributes; } /** * @inheritdoc */ public function setExtensionAttributes(?KeywordExtensionInterface $extensionAttributes): void { $this->extensionAttributes = $extensionAttributes; } }