1 | <?php |
||
22 | class ClientBuilder extends Builder |
||
23 | { |
||
24 | /** |
||
25 | * Adds Cache Plugin to builder |
||
26 | * |
||
27 | * @param CacheItemPoolInterface $cacheItemPool |
||
28 | * @param array $config |
||
29 | * @throws \ReflectionException |
||
30 | */ |
||
31 | public function addCache(CacheItemPoolInterface $cacheItemPool, array $config = []) |
||
37 | |||
38 | /** |
||
39 | * Add a cache plugin to cache responses locally. |
||
40 | * |
||
41 | * @param CacheItemPoolInterface $cacheItemPool |
||
42 | * @param CacheKeyGenerator|null $generator |
||
43 | * @param int|null $lifetime |
||
44 | * @throws \ReflectionException |
||
45 | */ |
||
46 | protected function setCachePlugin(CacheItemPoolInterface $cacheItemPool, CacheKeyGenerator $generator = null, int $lifetime = null): void |
||
52 | |||
53 | /** |
||
54 | * Retrieves the value of a builder property |
||
55 | * |
||
56 | * @param string $name |
||
57 | * @return mixed |
||
58 | * @throws \ReflectionException |
||
59 | */ |
||
60 | protected function getPropertyValue(string $name) |
||
64 | |||
65 | /** |
||
66 | * Sets the value of a builder property |
||
67 | * |
||
68 | * @param string $name |
||
69 | * @param $value |
||
70 | * @throws \ReflectionException |
||
71 | */ |
||
72 | protected function setPropertyValue(string $name, $value) |
||
76 | |||
77 | /** |
||
78 | * Gets the builder reflection property for the given name |
||
79 | * |
||
80 | * @param string $name |
||
81 | * @return \ReflectionProperty |
||
82 | * @throws \ReflectionException |
||
83 | */ |
||
84 | protected static function getProperty(string $name) |
||
92 | } |