Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | use Illuminate\Http\Request; |
||
6 | |||
7 | class Webhook |
||
8 | { |
||
9 | const HEADER_HMAC_SIGNATURE = 'X-Shopify-Hmac-Sha256'; |
||
10 | const HEADER_SHOP_DOMAIN = 'X-Shopify-Shop-Domain'; |
||
11 | const HEADER_TOPIC = 'X-Shopify-Topic'; |
||
12 | |||
13 | protected string $domain; |
||
14 | protected string $topic; |
||
15 | protected array $payload; |
||
16 | |||
17 | public function __construct(string $domain, string $topic, array $payload) |
||
22 | } |
||
23 | |||
24 | public function domain(): string |
||
27 | } |
||
28 | |||
29 | public function eventName(): string |
||
32 | } |
||
33 | |||
53 |