Basket   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSessionIdentifier() 0 4 1
A setSessionIdentifier() 0 4 1
1
<?php
2
/**
3
 * Basket model
4
 *
5
 * @author  Tim Lochmüller
6
 */
7
8
namespace FRUIT\Shopize\Domain\Model;
9
10
/**
11
 * Basket model
12
 *
13
 * @db
14
 */
15
class Basket extends AbstractModel
16
{
17
18
    /**
19
     * Session identifier
20
     *
21
     * @var string
22
     * @db
23
     */
24
    protected $sessionIdentifier;
25
26
    /**
27
     * Get session identifier
28
     *
29
     * @return string
30
     */
31
    public function getSessionIdentifier()
32
    {
33
        return $this->sessionIdentifier;
34
    }
35
36
    /**
37
     * Set session identifier
38
     *
39
     * @param string $sessionIdentifier
40
     */
41
    public function setSessionIdentifier($sessionIdentifier)
42
    {
43
        $this->sessionIdentifier = $sessionIdentifier;
44
    }
45
}
46