1 | <?php |
||
22 | class ReadByEmail extends HttpRelayBuilder |
||
23 | { |
||
24 | /** |
||
25 | * The node |
||
26 | */ |
||
27 | const NODE = 'contacts'; |
||
28 | |||
29 | /** |
||
30 | * The resource |
||
31 | */ |
||
32 | const RESOURCE = 'contact'; |
||
33 | |||
34 | /** |
||
35 | * Upsert constructor. |
||
36 | * @param AuthorizationInterface $authorization |
||
37 | * @param CacheInterface $cache |
||
38 | * @param string|null $identifier |
||
39 | * @param LoggerInterface|null $logger |
||
40 | * @param array $config |
||
41 | */ |
||
42 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * @param string|null $identifier |
||
59 | * @param LoggerInterface|null $logger |
||
60 | * @return $this |
||
61 | */ |
||
62 | protected function addUri(string $identifier, LoggerInterface $logger = null) |
||
71 | |||
72 | /** |
||
73 | * @param CacheInterface $cache |
||
74 | * @param string $key |
||
75 | * @param LoggerInterface|null $logger |
||
76 | * @return $this |
||
77 | */ |
||
78 | protected function addCache(CacheInterface $cache, string $key, LoggerInterface $logger = null) |
||
87 | } |
||
88 |