1 | <?php |
||
22 | class Add extends HttpRelayBuilder |
||
23 | { |
||
24 | /** |
||
25 | * The node |
||
26 | */ |
||
27 | const NODE = 'companies'; |
||
28 | |||
29 | /** |
||
30 | * The resource |
||
31 | */ |
||
32 | const RESOURCE = 'companies'; |
||
33 | |||
34 | /** |
||
35 | * Upsert constructor. |
||
36 | * @param string $companyId |
||
37 | * @param string $contactId |
||
38 | * @param AuthorizationInterface $authorization |
||
39 | * @param CacheInterface $cache |
||
40 | * @param LoggerInterface|null $logger |
||
41 | * @param array $config |
||
42 | */ |
||
43 | public function __construct( |
||
58 | |||
59 | /** |
||
60 | * @param string $companyId |
||
61 | * @param string $contactId |
||
62 | * @param LoggerInterface|null $logger |
||
63 | * @return $this |
||
64 | */ |
||
65 | protected function addUri(string $companyId, string $contactId, LoggerInterface $logger = null) |
||
75 | |||
76 | /** |
||
77 | * @param CacheInterface $cache |
||
78 | * @param string|null $key |
||
79 | * @param LoggerInterface|null $logger |
||
80 | * @return $this |
||
81 | */ |
||
82 | protected function addCache(CacheInterface $cache, string $key = null, LoggerInterface $logger = null) |
||
91 | } |
||
92 |