![]() 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-ui/Model/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\MediaGalleryUi\Model; use Magento\MediaGalleryUi\Model\InsertImageDataExtensionInterface; /** * Class responsible to provide insert image details */ class InsertImageData implements InsertImageDataInterface { /** * @var InsertImageDataExtensionInterface */ private $extensionAttributes; /** * @var string */ private $content; /** * @var int */ private $size; /** * @var string */ private $type; /** * InsertImageData constructor. * * @param string $content * @param int $size * @param string $type */ public function __construct(string $content, int $size, string $type) { $this->content = $content; $this->size = $size; $this->type = $type; } /** * Returns a content (just a link or an html block) for inserting image to the content * * @return string */ public function getContent(): string { return $this->content; } /** * Returns size of requested file * * @return int */ public function getSize(): int { return $this->size; } /** * Returns MIME type of requested file * * @return string */ public function getType(): string { return $this->type; } /** * Get extension attributes * * @return \Magento\MediaGalleryUi\Model\InsertImageDataExtensionInterface|null */ public function getExtensionAttributes(): ?InsertImageDataExtensionInterface { return $this->extensionAttributes; } /** * Set extension attributes * * @param \Magento\MediaGalleryUi\Model\InsertImageDataExtensionInterface $extensionAttributes * @return void */ public function setExtensionAttributes(InsertImageDataExtensionInterface $extensionAttributes): void { $this->extensionAttributes = $extensionAttributes; } }