BasketRepository::findCurrent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * Basket repository
4
 *
5
 * @author  Tim Lochmüller
6
 */
7
8
namespace FRUIT\Shopize\Domain\Repository;
9
10
use FRUIT\Shopize\Domain\Model\Basket;
11
use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
12
13
/**
14
 * Basket repository
15
 *
16
 * @author Tim Lochmüller
17
 */
18
class BasketRepository extends AbstractRepository
19
{
20
21
    /**
22
     * Find the current basket
23
     *
24
     * @return Basket
25
     */
26
    public function findCurrent()
27
    {
28
        DebuggerUtility::var_dump('get current Basket');
29
        $basket = new Basket();
30
        return $basket;
31
    }
32
}
33