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

ContactTranslation::getTopic()   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 0
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\Translatable\Translation;
16
use WellCommerce\Bundle\CoreBundle\Entity\AbstractTranslation;
17
18
/**
19
 * Class ContactTranslation
20
 *
21
 * @author  Adam Piotrowski <[email protected]>
22
 */
23
class ContactTranslation extends AbstractTranslation
24
{
25
    use Translation;
26
    
27
    protected $name          = '';
28
    protected $topic         = '';
29
    protected $email         = '';
30
    protected $phone         = '';
31
    protected $businessHours = '';
32
    
33
    public function getName(): string
34
    {
35
        return $this->name;
36
    }
37
    
38
    public function setName(string $name)
39
    {
40
        $this->name = $name;
41
    }
42
    
43
    public function getTopic(): string
44
    {
45
        return (string)$this->topic;
46
    }
47
    
48
    public function setTopic(string $topic)
49
    {
50
        $this->topic = $topic;
51
    }
52
    
53
    public function getEmail(): string
54
    {
55
        return $this->email;
56
    }
57
    
58
    public function setEmail(string $email)
59
    {
60
        $this->email = $email;
61
    }
62
    
63
    public function getPhone(): string
64
    {
65
        return $this->phone;
66
    }
67
    
68
    public function setPhone(string $phone)
69
    {
70
        $this->phone = $phone;
71
    }
72
    
73
    public function getBusinessHours(): string
74
    {
75
        return (string)$this->businessHours;
76
    }
77
    
78
    public function setBusinessHours(string $businessHours)
79
    {
80
        $this->businessHours = $businessHours;
81
    }
82
}
83