Table of contents
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
- since: 2026-07-17
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf
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