Completed
Pull Request — master (#2363)
by Franck
07:07
created

TemplateDuplicateEvent::getSourceTemplateId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the Thelia package.                                     */
4
/*                                                                                   */
5
/*      Copyright (c) OpenStudio                                                     */
6
/*      email : [email protected]                                                       */
7
/*      web : http://www.thelia.net                                                  */
8
/*                                                                                   */
9
/*      For the full copyright and license information, please view the LICENSE.txt  */
10
/*      file that was distributed with this source code.                             */
11
/*************************************************************************************/
12
13
namespace Thelia\Core\Event\Template;
14
15
class TemplateDuplicateEvent extends TemplateEvent
16
{
17
    /** @var  int */
18
    protected $sourceTemplateId;
19
    
20
    /** @var  string */
21
    protected $locale;
22
    
23
    /**
24
     * TemplateCreateEvent constructor.
25
     * @param int $sourceTemplateId
26
     */
27
    public function __construct($sourceTemplateId, $locale)
28
    {
29
        parent::__construct();
30
        
31
        $this->sourceTemplateId = $sourceTemplateId;
32
        $this->locale = $locale;
33
    }
34
    
35
    /**
36
     * @return int
37
     */
38
    public function getSourceTemplateId()
39
    {
40
        return $this->sourceTemplateId;
41
    }
42
    
43
    /**
44
     * @return string
45
     */
46
    public function getLocale()
47
    {
48
        return $this->locale;
49
    }
50
}
51