Completed
Push — master ( 201e9c...877b57 )
by Artem
11:08
created

Identity::setEndpoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of the FreshSinchBundle
4
 *
5
 * (c) Artem Genvald <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Fresh\SinchBundle\Model;
12
13
/**
14
 * Identity.
15
 *
16
 * @author Artem Genvald <[email protected]>
17
 *
18
 * @link https://www.sinch.com/docs/sms/#incomingsms
19
 */
20
class Identity
21
{
22
    /**
23
     * @var string $type Type
24
     */
25
    private $type;
26
27
    /**
28
     * @var string $endpoint Endpoint
29
     */
30
    private $endpoint;
31
32
    /**
33
     * Get type.
34
     *
35
     * @return string Type
36
     */
37
    public function getType()
38
    {
39
        return $this->type;
40
    }
41
42
    /**
43
     * Set type.
44
     *
45
     * @param string $type type
46
     *
47
     * @return $this
48
     */
49
    public function setType($type)
50
    {
51
        $this->type = $type;
52
53
        return $this;
54
    }
55
56
    /**
57
     * Get endpoint.
58
     *
59
     * @return string Endpoint
60
     */
61
    public function getEndpoint()
62
    {
63
        return $this->endpoint;
64
    }
65
66
    /**
67
     * Set endpoint.
68
     *
69
     * @param string $endpoint endpoint
70
     *
71
     * @return $this
72
     */
73
    public function setEndpoint($endpoint)
74
    {
75
        $this->endpoint = $endpoint;
76
77
        return $this;
78
    }
79
}
80