Completed
Push — master ( c383d4...4bbc60 )
by Scott
02:41
created

NoShippingDriver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A driverDetails() 0 6 1
A calculate() 0 3 1
1
<?php namespace Bedard\Shop\Classes;
2
3
use Bedard\Shop\Models\Cart;
4
use Bedard\Shop\Interfaces\ShippingDriverInterface;
5
6
class NoShippingDriver implements ShippingDriverInterface
7
{
8
    /**
9
     * Return details about this driver.
10
     *
11
     * @return array
12
     */
13
    public function driverDetails()
14
    {
15
        return [
16
            'name' => 'No shipping',
17
        ];
18
    }
19
20
    /**
21
     * Calculate the shipping for a cart.
22
     *
23
     * @param  Cart   $cart
24
     * @return float
25
     */
26
    public function calculate(Cart $cart)
27
    {
28
    }
29
}
30