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