Site   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 41
ccs 0
cts 18
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getSiteId() 0 4 1
A getName() 0 4 1
A setWebsiteId() 0 5 1
A setName() 0 5 1
1
<?php
2
3
namespace SpeckCatalog\Model;
4
5
class Site extends AbstractModel
6
{
7
    protected $websiteId;
8
    protected $name;
9
10
    /**
11
     * @return websiteId
12
     */
13
    public function getSiteId()
14
    {
15
        return $this->websiteId;
16
    }
17
18
    /**
19
     * @param $websiteId
20
     * @return self
21
     */
22
    public function setWebsiteId($websiteId)
23
    {
24
        $this->websiteId = (int) $websiteId;
25
        return $this;
26
    }
27
28
    /**
29
     * @return name
30
     */
31
    public function getName()
32
    {
33
        return $this->name;
34
    }
35
36
    /**
37
     * @param $name
38
     * @return self
39
     */
40
    public function setName($name)
41
    {
42
        $this->name = $name;
43
        return $this;
44
    }
45
}
46