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

CartFactory::getCart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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