Completed
Push — master ( 57f196...fb64ee )
by
unknown
15:57
created

OverwriteProtection   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 107
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 1
dl 0
loc 107
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getProtectedUid() 0 4 1
A getProtectedTablename() 0 4 1
A setProtectedUid() 0 4 1
A setProtectedTablename() 0 4 1
A getProtectedTime() 0 4 1
A setProtectedTime() 0 4 1
A getProtectedMode() 0 4 1
A setProtectedMode() 0 4 1
A getDeleted() 0 4 1
A setDeleted() 0 4 1
1
<?php
2
namespace Aoe\AoeDbSequenzer\Domain\Model;
3
4
/***************************************************************
5
 *  Copyright notice
6
 *
7
 *  (c) 2017 AOE GmbH ([email protected])
8
 *  All rights reserved
9
 *
10
 *  This script is part of the TYPO3 project. The TYPO3 project is
11
 *  free software; you can redistribute it and/or modify
12
 *  it under the terms of the GNU General Public License as published by
13
 *  the Free Software Foundation; either version 2 of the License, or
14
 *  (at your option) any later version.
15
 *
16
 *  The GNU General Public License can be found at
17
 *  http://www.gnu.org/copyleft/gpl.html.
18
 *
19
 *  This script is distributed in the hope that it will be useful,
20
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 *  GNU General Public License for more details.
23
 *
24
 *  This copyright notice MUST APPEAR in all copies of the script!
25
 ***************************************************************/
26
27
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
28
29
/**
30
 * @package Aoe\AoeDbSequenzer\Domain\Model
31
 */
32
class OverwriteProtection extends AbstractEntity
33
{
34
    /**
35
     * @var integer
36
     */
37
    protected $deleted;
38
39
    /**
40
     * @var integer
41
     */
42
    protected $protectedUid;
43
44
    /**
45
     * @var string
46
     */
47
    protected $protectedTablename;
48
49
    /**
50
     * @var integer
51
     */
52
    protected $protectedTime;
53 1
54 1
    /**
55
     * @var integer
56
     */
57
    protected $protectedMode;
58
59 1
    /**
60 1
     * @return integer
61
     */
62
    public function getProtectedUid()
63
    {
64
        return $this->protectedUid;
65 1
    }
66 1
67 1
    /**
68
     * @return string
69
     */
70
    public function getProtectedTablename()
71 1
    {
72 1
        return $this->protectedTablename;
73 1
    }
74
75
    /**
76
     * @param integer $protectedUid
77 1
     */
78 1
    public function setProtectedUid($protectedUid)
79
    {
80
        $this->protectedUid = intval($protectedUid);
81
    }
82
83 1
    /**
84 1
     * @param string $protectedTablename
85 1
     */
86
    public function setProtectedTablename($protectedTablename)
87
    {
88
        $this->protectedTablename = $protectedTablename;
89 1
    }
90 1
91
    /**
92
     * @return integer
93
     */
94
    public function getProtectedTime()
95
    {
96 1
        return $this->protectedTime;
97 1
    }
98 1
99
    /**
100
     * @param integer $protectedTime
101
     */
102 1
    public function setProtectedTime($protectedTime)
103 1
    {
104
        $this->protectedTime = intval($protectedTime);
105
    }
106
107
    /**
108
     * @return integer
109 1
     */
110 1
    public function getProtectedMode()
111 1
    {
112
        return $this->protectedMode;
113
    }
114
115
    /**
116
     * @param integer $protectedMode
117
     */
118
    public function setProtectedMode($protectedMode)
119
    {
120
        $this->protectedMode = intval($protectedMode);
121
    }
122
123
    /**
124
     * @return integer
125
     */
126
    public function getDeleted()
127
    {
128
        return $this->deleted;
129
    }
130
131
    /**
132
     * @param integer $deleted
133
     */
134
    public function setDeleted($deleted)
135
    {
136
        $this->deleted = $deleted;
137
    }
138
}
139