| Total Complexity | 8 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
|
|
|||
| 81 | */ |
||
| 82 | public function getPaymentMethod() |
||
| 83 | { |
||
| 84 | return $this->paymentMethod; |
||
| 85 | } |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param \string $paymentMethod |
||
| 89 | * @return CartForm |
||
| 90 | */ |
||
| 91 | public function setPaymentMethod($paymentMethod) |
||
| 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