1 | <?php |
||
2 | |||
3 | namespace GGGGino\SkuskuCartBundle\Entity; |
||
4 | |||
5 | |||
6 | use GGGGino\SkuskuCartBundle\Model\SkuskuCart; |
||
7 | use GGGGino\SkuskuCartBundle\Model\SkuskuCartProductInterface; |
||
8 | use Doctrine\Common\Collections\ArrayCollection; |
||
9 | |||
10 | /** |
||
11 | * Entità usata per la gestione del form multistep |
||
12 | * |
||
13 | * Class CartForm |
||
14 | * @package GGGGino\SkuskuCartBundle\Entity |
||
15 | */ |
||
16 | class CartForm |
||
17 | { |
||
18 | /** |
||
19 | * @var SkuskuCart |
||
20 | */ |
||
21 | private $cart; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $paymentMethod; |
||
27 | |||
28 | /** |
||
29 | * CartForm constructor. |
||
30 | * @param SkuskuCart $cart |
||
31 | */ |
||
32 | public function __construct(SkuskuCart $cart) |
||
33 | { |
||
34 | $this->cart = $cart; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return SkuskuCart |
||
39 | */ |
||
40 | public function getCart() |
||
41 | { |
||
42 | return $this->cart; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param SkuskuCart $cart |
||
47 | * @return CartForm |
||
48 | */ |
||
49 | public function setCart($cart) |
||
50 | { |
||
51 | $this->cart = $cart; |
||
52 | return $this; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return SkuskuCartProductInterface[]|ArrayCollection |
||
57 | */ |
||
58 | public function getCartProducts() |
||
59 | { |
||
60 | return $this->cart->getProducts(); |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return float |
||
65 | */ |
||
66 | public function getTotalQuantity() |
||
67 | { |
||
68 | return $this->cart->getTotalQuantity(); |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return float |
||
73 | */ |
||
74 | public function getTotalPrice() |
||
75 | { |
||
76 | return $this->cart->getTotalPrice(); |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * @return \string |
||
0 ignored issues
–
show
|
|||
81 | */ |
||
82 | public function getPaymentMethod() |
||
83 | { |
||
84 | return $this->paymentMethod; |
||
0 ignored issues
–
show
|
|||
85 | } |
||
86 | |||
87 | /** |
||
88 | * @param \string $paymentMethod |
||
89 | * @return CartForm |
||
90 | */ |
||
91 | public function setPaymentMethod($paymentMethod) |
||
92 | { |
||
93 | $this->paymentMethod = $paymentMethod; |
||
94 | return $this; |
||
95 | } |
||
96 | } |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths