Passed
Pull Request — master (#9)
by Mariusz
02:39
created

User   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 42
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setId() 0 3 1
A addStore() 0 3 1
A getStores() 0 3 1
1
<?php
2
3
namespace Xsolve\AssociateTests\Functional\GenericEntity\Mock\Model;
4
5
class User
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $id;
11
12
    /**
13
     * @var Store[]
14
     */
15
    protected $stores;
16
17
    /**
18
     * @return string
19
     */
20
    public function getId(): string
21
    {
22
        return $this->id;
23
    }
24
25
    /**
26
     * @param string $id
27
     */
28
    public function setId(string $id)
29
    {
30
        $this->id = $id;
31
    }
32
33
    /**
34
     * @param Store $store
35
     */
36
    public function addStore(Store $store)
37
    {
38
        $this->stores[] = $store;
39
    }
40
41
    /**
42
     * @return Store[]
43
     */
44
    public function getStores(): array
45
    {
46
        return $this->stores;
47
    }
48
}
49