Completed
Push — master ( 66f2fa...218410 )
by Daniel
01:47
created

PreAuthEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setResponse() 0 5 1
A getShop() 0 3 1
A __construct() 0 3 1
A getResponse() 0 3 1
1
<?php
2
3
namespace CodeCloud\Bundle\ShopifyBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Symfony\Component\HttpFoundation\Response;
0 ignored issues
show
Bug introduced by
The type Symfony\Component\HttpFoundation\Response was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
class PreAuthEvent extends Event
9
{
10
    const NAME = 'codecloud.shopify.pre_auth';
11
12
    /**
13
     * @var string
14
     */
15
    private $shop;
16
17
    /**
18
     * @var Response
19
     */
20
    private $response;
21
22
    /**
23
     * @param string $shop
24
     */
25
    public function __construct(string $shop)
26
    {
27
        $this->shop = $shop;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getShop(): string
34
    {
35
        return $this->shop;
36
    }
37
38
    /**
39
     * @return Response
40
     */
41
    public function getResponse(): Response
42
    {
43
        return $this->response;
44
    }
45
46
    /**
47
     * @param Response $response
48
     * @return $this
49
     */
50
    public function setResponse(Response $response)
51
    {
52
        $this->response = $response;
53
54
        return $this;
55
    }
56
}
57