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_Writer.php

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

40 lines 773 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The meta writer 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\MetadataNotWritableException;
13 use SolidWP\Performance\Page_Cache\Meta\Meta;
14
15 /**
16 * @internal
17 */
18 interface Meta_Writer {
19
20 /**
21 * Write a Meta value object's data somewhere.
22 *
23 * @param Meta $meta The Meta value object.
24 *
25 * @throws MetadataNotWritableException If we can't save the metadata.
26 *
27 * @return void
28 */
29 public function write( Meta $meta ): void;
30
31 /**
32 * Delete the metadata from the location it was written.
33 *
34 * @param Meta $meta The Meta value object.
35 *
36 * @return void
37 */
38 public function delete( Meta $meta ): void;
39 }
40