mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 18:39:43 +00:00
Added a new class, PdfSignedMessage, to handle received signed PDF messages. Also, added a serializer for this class, PdfSignedMessageSerializer, for use with messaging. Furthermore, comment documentation has been added to RequestPdfSignMessage and its serializer for better clarity. Updated unit tests are also included.
30 lines
726 B
PHP
30 lines
726 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\DocStoreBundle\Service\Signature\Driver\BaseSigner;
|
|
|
|
use Chill\DocStoreBundle\Service\Signature\PDFSignatureZone;
|
|
|
|
/**
|
|
* Message which is sent when we request a signature on a pdf.
|
|
*/
|
|
final readonly class RequestPdfSignMessage
|
|
{
|
|
public function __construct(
|
|
public int $signatureId,
|
|
public PDFSignatureZone $PDFSignatureZone,
|
|
public int $signatureZoneIndex,
|
|
public string $reason,
|
|
public string $signerText,
|
|
public string $content,
|
|
) {}
|
|
}
|