PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / 1.1.0
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution v1.1.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 / Config / Strategies / Pipeline.php

Pipeline.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution 1.1.0, at src/Performance/Config/Strategies/Pipeline.php

49 lines 900 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * A class that handles saving and retrieving config values.
4 *
5 * @since 0.1.0
6 *
7 * @package SolidWP\Performance
8 */
9
10 namespace SolidWP\Performance\Config\Strategies;
11
12 use SolidWP\Performance\Config\Contracts\Strategy;
13 use SolidWP\Performance\StellarWP\Pipeline\Pipeline as StellarPipeline;
14
15 /**
16 * A class that handles saving and retrieving config values.
17 *
18 * @since 0.1.0
19 *
20 * @package SolidWP\Performance
21 */
22 class Pipeline extends StellarPipeline implements Strategy {
23
24 /**
25 * {@inheritdoc}
26 */
27 public function get( string $key ) {
28 return $this->via( 'get' )->send( $key )->then(
29 static function () {
30 return null;
31 }
32 );
33 }
34
35 /**
36 * {@inheritdoc}
37 */
38 public function save( array $changes ) {
39 return $this->via( 'save' )->send( $changes )->run();
40 }
41
42 /**
43 * {@inheritDoc}
44 */
45 public function is_responsible_for( string $option ): bool {
46 return true;
47 }
48 }
49