1<?php 2/** 3 * Copyright since 2007 PrestaShop SA and Contributors 4 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 5 * 6 * NOTICE OF LICENSE 7 * 8 * This source file is subject to the Open Software License (OSL 3.0) 9 * that is bundled with this package in the file LICENSE.md. 10 * It is also available through the world-wide-web at this URL: 11 * https://opensource.org/licenses/OSL-3.0 12 * If you did not receive a copy of the license and are unable to 13 * obtain it through the world-wide-web, please send an email 14 * to license@prestashop.com so we can send you a copy immediately. 15 * 16 * DISCLAIMER 17 * 18 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 19 * versions in the future. If you wish to customize PrestaShop for your 20 * needs please refer to https://devdocs.prestashop.com/ for more information. 21 * 22 * @author PrestaShop SA and Contributors <contact@prestashop.com> 23 * @copyright Since 2007 PrestaShop SA and Contributors 24 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 25 */ 26 27declare(strict_types=1); 28 29namespace PrestaShop\PrestaShop\Core\Domain\Attachment\QueryResult; 30 31class AttachmentInformation 32{ 33 /** 34 * @var int 35 */ 36 private $attachmentId; 37 38 /** 39 * @var string 40 */ 41 private $name; 42 43 /** 44 * @var string 45 */ 46 private $fileName; 47 48 /** 49 * @var string 50 */ 51 private $type; 52 53 /** 54 * @param int $attachmentId 55 * @param string $name 56 * @param string $fileName 57 * @param string $type 58 */ 59 public function __construct(int $attachmentId, string $name, string $fileName, string $type) 60 { 61 $this->attachmentId = $attachmentId; 62 $this->name = $name; 63 $this->fileName = $fileName; 64 $this->type = $type; 65 } 66 67 /** 68 * @return int 69 */ 70 public function getAttachmentId(): int 71 { 72 return $this->attachmentId; 73 } 74 75 /** 76 * @return string 77 */ 78 public function getName(): string 79 { 80 return $this->name; 81 } 82 83 /** 84 * @return string 85 */ 86 public function getFileName(): string 87 { 88 return $this->fileName; 89 } 90 91 /** 92 * @return string 93 */ 94 public function getType(): string 95 { 96 return $this->type; 97 } 98} 99