BasketRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A findCurrent() 0 6 1
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