Completed
Push — master ( b93e82...a1a5c6 )
by WEBEWEB
01:50
created

PhoneNumbersTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getMobileNumber() 0 3 1
A getPhoneNumber() 0 3 1
A setMobileNumber() 0 4 1
A setPhoneNumber() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the core-library package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Core\Model\Contact;
13
14
/**
15
 * Phone numbers trait.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Library\Core\Model\Contact
19
 */
20
trait PhoneNumbersTrait {
21
22
    /**
23
     * Mobile number.
24
     *
25
     * @var string
26
     */
27
    private $mobileNumber;
28
29
    /**
30
     * Phone number.
31
     *
32
     * @var string
33
     */
34
    private $phoneNumber;
35
36
    /**
37
     * Get the mobile number.
38
     *
39
     * @return string Returns the mobile number.
40
     */
41
    public function getMobileNumber() {
42
        return $this->mobileNumber;
43
    }
44
45
    /**
46
     * Get the phone number.
47
     *
48
     * @return string Returns the phone number.
49
     */
50
    public function getPhoneNumber() {
51
        return $this->phoneNumber;
52
    }
53
54
    /**
55
     * Set the mobile number.
56
     *
57
     * @param string $mobileNumber
58
     * @return mixed Returns the class using this trait.
59
     */
60
    public function setMobileNumber($mobileNumber) {
61
        $this->mobileNumber = $mobileNumber;
62
        return $this;
63
    }
64
65
    /**
66
     * Set the phone number.
67
     *
68
     * @param string $phoneNumber The phone number.
69
     * @return mixed Returns the class using this trait.
70
     */
71
    public function setPhoneNumber($phoneNumber) {
72
        $this->phoneNumber = $phoneNumber;
73
        return $this;
74
    }
75
76
}
77