PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / 1.8.0
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution v1.8.0
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / src / Performance / Page_Cache / Meta / Contracts / Meta_Reader.php

Meta_Reader.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution 1.8.0, at src/Performance/Page_Cache/Meta/Contracts/Meta_Reader.php

31 lines 631 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The meta reader contract.
4 *
5 * @package SolidWP\Performance
6 */
7
8 declare( strict_types=1 );
9
10 namespace SolidWP\Performance\Page_Cache\Meta\Contracts;
11
12 use SolidWP\Performance\Page_Cache\Meta\Exceptions\MetadataNotReadableException;
13 use SolidWP\Performance\Page_Cache\Meta\Meta;
14
15 /**
16 * @internal
17 */
18 interface Meta_Reader {
19
20 /**
21 * Read the data from a meta file and return a Meta value object.
22 *
23 * @param string $url The URL associated with the metadata.
24 *
25 * @throws MetadataNotReadableException If we're unable to read the metadata.
26 *
27 * @return Meta
28 */
29 public function read( string $url ): Meta;
30 }
31