CacheType

Backed enum for the cacheable subsystem type. The backing value of each case matches a CacheInterface::TYPE_* constant.

Namespace: Com\Tecnick\Pdf\Cache

Backing type: string

File: CacheType.php line 37

Backed enum for the cacheable subsystem type. The backing value of each case matches a CacheInterface::TYPE_* constant.

Tags

Cases

Font

File: CacheType.php line 40

Image

File: CacheType.php line 43

Methods

fromLoose()

File: CacheType.php line 55

public static fromLoose(string|self $value) : self

Accepts the canonical type name or an enum instance (returned unchanged). Unknown values throw.

Parameters

  • $value : string|self: Cache type name or enum case.

Tags

  • throws: Exception if the value is not a known cache type.

Return values

self