![]() 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/cartforge.co/vendor/magento/module-media-content/Model/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\MediaContent\Model; use Magento\MediaContentApi\Api\Data\ContentAssetLinkInterface; use Magento\MediaContentApi\Api\Data\ContentAssetLinkExtensionInterface; use Magento\MediaContentApi\Api\Data\ContentIdentityInterface; /** * Relation of the media asset to the media content */ class ContentAssetLink implements ContentAssetLinkInterface { /** * @var ContentAssetLinkExtensionInterface|null */ private $extensionAttributes; /** * @var ContentIdentityInterface */ private $contentIdentity; /** * @var int */ private $assetId; /** * ContentAssetLink constructor. * @param int $assetId * @param ContentIdentityInterface $contentIdentity * @param ContentAssetLinkExtensionInterface|null $extensionAttributes */ public function __construct( int $assetId, ContentIdentityInterface $contentIdentity, ?ContentAssetLinkExtensionInterface $extensionAttributes = null ) { $this->assetId = $assetId; $this->contentIdentity = $contentIdentity; $this->extensionAttributes = $extensionAttributes; } /** * @inheritdoc */ public function getAssetId(): int { return $this->assetId; } /** * @inheritdoc */ public function getContentId(): ContentIdentityInterface { return $this->contentIdentity; } /** * @inheritdoc */ public function getExtensionAttributes(): ?ContentAssetLinkExtensionInterface { return $this->extensionAttributes; } /** * @inheritdoc */ public function setExtensionAttributes(?ContentAssetLinkExtensionInterface $extensionAttributes): void { $this->extensionAttributes = $extensionAttributes; } }