| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class PreAuthEvent extends Event |
||
| 15 | { |
||
| 16 | const NAME = 'codecloud_shopify.pre_auth'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $shop; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Response |
||
| 25 | */ |
||
| 26 | private $response; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $shop |
||
| 30 | */ |
||
| 31 | public function __construct(string $shop) |
||
| 32 | { |
||
| 33 | $this->shop = $shop; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getShop(): string |
||
| 40 | { |
||
| 41 | return $this->shop; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return Response |
||
| 46 | */ |
||
| 47 | public function getResponse(): ?Response |
||
| 48 | { |
||
| 49 | return $this->response; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param Response $response |
||
| 54 | * @return $this |
||
| 55 | */ |
||
| 56 | public function setResponse(Response $response) |
||
| 61 | } |
||
| 62 | } |
||
| 63 |