. * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ namespace Espo\Tools\Attachment; use Psr\Http\Message\StreamInterface; /** * Immutable. */ class FileData { private ?string $name; private ?string $type; private StreamInterface $stream; private int $size; public function __construct( ?string $name, ?string $type, StreamInterface $stream, int $size ) { $this->name = $name; $this->type = $type; $this->stream = $stream; $this->size = $size; } public function getName(): ?string { return $this->name; } public function getType(): ?string { return $this->type; } public function getStream(): StreamInterface { return $this->stream; } public function getSize(): int { return $this->size; } }