Completed
Push — master ( 200fd3...57f761 )
by David
01:52
created

Module::isPredispatch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Tag Manager
4
 * Copyright (c) Webmatch GmbH
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 */
16
17
namespace WbmTagManager\Models;
18
19
use Doctrine\ORM\Mapping as ORM;
20
use Shopware\Components\Model\ModelEntity;
21
22
/**
23
 * @ORM\Entity
24
 * @ORM\Entity(repositoryClass="Repository")
25
 * @ORM\Table(name="wbm_data_layer_modules")
26
 */
27
class Module extends ModelEntity
28
{
29
    /**
30
     * @var int
31
     * @ORM\Column(name="id", type="integer", nullable=false)
32
     * @ORM\Id
33
     * @ORM\GeneratedValue(strategy="IDENTITY")
34
     */
35
    private $id;
36
37
    /**
38
     * @var string
39
     * @ORM\Column(name="module", type="string", length=255, nullable=false)
40
     */
41
    private $module;
42
43
    /**
44
     * @var string
45
     * @ORM\Column(name="variables", type="string", nullable=true)
46
     */
47
    private $variables;
48
49
    /**
50
     * @var boolean
51
     * @ORM\Column(name="predispatch", type="boolean", nullable=false)
52
     */
53
    private $predispatch = 0;
54
55
    /**
56
     * @return int
57
     */
58
    public function getId()
59
    {
60
        return $this->id;
61
    }
62
63
    /**
64
     * @param int $id
65
     */
66
    public function setId($id)
67
    {
68
        $this->id = $id;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getModule()
75
    {
76
        return $this->module;
77
    }
78
79
    /**
80
     * @param string $module
81
     */
82
    public function setModule($module)
83
    {
84
        $this->module = $module;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getVariables()
91
    {
92
        return $this->variables;
93
    }
94
95
    /**
96
     * @param string $variables
97
     */
98
    public function setVariables($variables)
99
    {
100
        $this->variables = $variables;
101
    }
102
103
    /**
104
     * @return bool
105
     */
106
    public function isPredispatch()
107
    {
108
        return $this->predispatch;
109
    }
110
111
    /**
112
     * @param bool $predispatch
113
     */
114
    public function setPredispatch($predispatch)
115
    {
116
        $this->predispatch = $predispatch;
117
    }
118
}
119