Table of contents
Namespace: Com\Tecnick\Pdf\Sign
enum SignatureProfile: string
Source: src/SignatureProfile.php:35
Backed enum for the supported signature profiles. The backing value of each case matches the corresponding Config::PROFILE_* constant validated by Config.
Cases
Legacy = 'legacy'PadesBB = 'pades-b-b'PadesBT = 'pades-b-t'PadesBLT = 'pades-b-lt'PadesBLTA = 'pades-b-lta'
Methods
fromLoose()
Resolve a loose signature profile value to the matching enum case.
Accepts the canonical profile string (as validated by Config) or an enum instance (returned unchanged). Unknown values throw, matching the closed set enforced by Config.
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Signature profile identifier or enum case.
Returns: self
Throws:
- Exception: if the value does not match a known signature profile.
Source: src/SignatureProfile.php:58
values()
The backing value of every case, in declaration order.
public static values(): list<string>
Returns: list<string>
Source: src/SignatureProfile.php:72