Completed
Push — master ( 1c26be...19bb2d )
by Basil
05:42
created

ContactPointTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setEmail() 0 6 1
A getEmail() 0 4 1
A setTelephone() 0 6 1
A getTelephone() 0 4 1
1
<?php
2
3
namespace luya\web\jsonld;
4
5
trait ContactPointTrait
6
{
7
    use ThingTrait;
8
9
    private $_email;
10
    
11
    public function setEmail($email)
12
    {
13
        $this->_email = $email;
14
        
15
        return $this;
16
    }
17
    
18
    public function getEmail()
19
    {
20
        return $this->_email;
21
    }
22
    
23
    private $_telephone;
24
    
25
    public function setTelephone($telephone)
26
    {
27
        $this->_telephone = $telephone;
28
        
29
        return $this;
30
    }
31
    
32
    public function getTelephone()
33
    {
34
        return $this->_telephone;
35
    }
36
}