. * * 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\Pdf; /** * Immutable. */ class Params { private bool $applyAcl = false; private bool $pdfA = false; public function applyAcl(): bool { return $this->applyAcl; } public function isPdfA(): bool { return $this->pdfA; } public function withPdfA(bool $pdfA = true): self { $obj = clone $this; $obj->pdfA = $pdfA; return $obj; } public function withAcl(bool $applyAcl = true): self { $obj = clone $this; $obj->applyAcl = $applyAcl; return $obj; } public static function create(): self { return new self(); } }