Completed
Push — master ( d67f41...79042b )
by Adam
07:27
created

ContactTicket::setResourceId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/*
3
 * WellCommerce Open-Source E-Commerce Platform
4
 *
5
 * This file is part of the WellCommerce package.
6
 *
7
 * (c) Adam Piotrowski <[email protected]>
8
 *
9
 * For the full copyright and license information,
10
 * please view the LICENSE file that was distributed with this source code.
11
 */
12
13
namespace WellCommerce\Bundle\CmsBundle\Entity;
14
15
use Knp\DoctrineBehaviors\Model\Timestampable\Timestampable;
16
use WellCommerce\Bundle\CoreBundle\Doctrine\Behaviours\Identifiable;
17
use WellCommerce\Bundle\CoreBundle\Entity\EntityInterface;
18
19
/**
20
 * Class ContactTicket
21
 *
22
 * @author  Adam Piotrowski <[email protected]>
23
 */
24
class ContactTicket implements EntityInterface
25
{
26
    use Identifiable;
27
    use Timestampable;
28
    
29
    protected $name         = '';
30
    protected $surname      = '';
31
    protected $subject      = '';
32
    protected $phone        = '';
33
    protected $email        = '';
34
    protected $content      = '';
35
    protected $resourceType = null;
36
    protected $resourceId   = null;
37
    
38
    /**
39
     * @var Contact
40
     */
41
    protected $contact;
42
    
43
    public function getName(): string
44
    {
45
        return $this->name;
46
    }
47
    
48
    public function setName(string $name)
49
    {
50
        $this->name = $name;
51
    }
52
    
53
    public function getSurname(): string
54
    {
55
        return $this->surname;
56
    }
57
    
58
    public function setSurname(string $surname)
59
    {
60
        $this->surname = $surname;
61
    }
62
    
63
    public function getSubject(): string
64
    {
65
        return $this->subject;
66
    }
67
    
68
    public function setSubject(string $subject)
69
    {
70
        $this->subject = $subject;
71
    }
72
    
73
    public function getPhone(): string
74
    {
75
        return $this->phone;
76
    }
77
    
78
    public function setPhone(string $phone)
79
    {
80
        $this->phone = $phone;
81
    }
82
    
83
    public function getEmail(): string
84
    {
85
        return $this->email;
86
    }
87
    
88
    public function setEmail(string $email)
89
    {
90
        $this->email = $email;
91
    }
92
    
93
    public function getContent(): string
94
    {
95
        return $this->content;
96
    }
97
    
98
    public function setContent(string $content)
99
    {
100
        $this->content = $content;
101
    }
102
    
103
    public function getResourceType()
104
    {
105
        return $this->resourceType;
106
    }
107
    
108
    public function setResourceType($resourceType)
109
    {
110
        $this->resourceType = $resourceType;
111
    }
112
    
113
    public function getResourceId()
114
    {
115
        return $this->resourceId;
116
    }
117
    
118
    public function setResourceId($resourceId)
119
    {
120
        $this->resourceId = $resourceId;
121
    }
122
    
123
    public function getContact()
124
    {
125
        return $this->contact;
126
    }
127
    
128
    public function setContact(Contact $contact = null)
129
    {
130
        $this->contact = $contact;
131
    }
132
}
133