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

NoShippingDriver::driverDetails()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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