Table of contents
Namespace: Com\Tecnick\Pdf\Cache
enum CacheType: string
Source: src/Cache/CacheType.php:37
Backed enum for the cacheable subsystem type. The backing value of each case matches a CacheInterface::TYPE_* constant.
Cases
Font = 'font': TrueType font subset programs (CacheInterface::TYPE_FONT).Image = 'image': Processed image data (CacheInterface::TYPE_IMAGE).
Methods
fromLoose()
Resolve a loose cache type value to the matching enum case.
Accepts the canonical type name or an enum instance (returned unchanged). Unknown values throw.
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Cache type name or enum case.
Returns: self
Throws:
- Exception: if the value is not a known cache type.
Source: src/Cache/CacheType.php:55