Table of contents
Namespace: Com\Tecnick\Pdf
enum AFRelationship: string
Source: src/AFRelationship.php:37
Backed enum for the PDF/A-3 embedded file /AFRelationship value, as validated by JavaScript::addEmbeddedFile().
Cases
Source = 'Source'Data = 'Data'Alternative = 'Alternative'Supplement = 'Supplement'Unspecified = 'Unspecified'
Methods
fromLoose()
Resolve a loose AFRelationship value to the matching enum case.
Accepts the exact relationship name or an enum instance (returned unchanged). Unknown values throw, matching addEmbeddedFile().
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): AFRelationship name or enum case.
Returns: self
Throws:
- Exception: if the value is not a known AFRelationship.
Source: src/AFRelationship.php:59