Completed
Branch FET/11183/improvements-to-pue-... (bb6bf5)
by
unknown
55:15 queued 42:07
created

CartFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCart() 0 4 1
1
<?php
2
3
namespace EventEspresso\core\domain\services\factories;
4
5
use EE_Cart;
6
use EventEspresso\core\exceptions\InvalidDataTypeException;
7
use EventEspresso\core\exceptions\InvalidInterfaceException;
8
use EventEspresso\core\services\loaders\LoaderFactory;
9
use InvalidArgumentException;
10
11
defined('EVENT_ESPRESSO_VERSION') || exit;
12
13
14
15
/**
16
 * Class CartFactory
17
 * Description
18
 *
19
 * @package EventEspresso\core\domain\services\factories
20
 * @author  Brent Christensen
21
 * @since   $VID:$
22
 */
23
class CartFactory
24
{
25
26
    /**
27
     * @return EE_Cart
28
     * @throws InvalidArgumentException
29
     * @throws InvalidInterfaceException
30
     * @throws InvalidDataTypeException
31
     */
32
    public static function getCart()
33
    {
34
        return LoaderFactory::getLoader()->getShared('EE_Cart');
35
    }
36
}
37