Completed
Push — master ( d535d3...8c6cf6 )
by Felix
16:53
created

Tx_FeatureFlag_Domain_Model_FeatureFlag   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 65
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setEnabled() 0 4 1
A isEnabled() 0 4 1
A setDescription() 0 4 1
A getDescription() 0 4 1
A setFlag() 0 4 1
A getFlag() 0 4 1
1
<?php
2
3
/***************************************************************
4
 *  Copyright notice
5
 *
6
 *  (c) 2016 AOE GmbH <[email protected]>
7
 *
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 3 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
/**
28
 * @package FeatureFlag
29
 * @subpackage Domain_Model
30
 */
31
class Tx_FeatureFlag_Domain_Model_FeatureFlag extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
32
{
33
    /**
34
     * @var string
35
     */
36
    protected $description;
37
38
    /**
39
     * @var string
40
     */
41
    protected $flag;
42
43
    /**
44
     * @var boolean
45
     */
46
    protected $enabled;
47
48
    /**
49
     * @param boolean $enabled
50
     */
51 1
    public function setEnabled($enabled)
52
    {
53 1
        $this->enabled = $enabled;
54 1
    }
55
56
    /**
57
     * @return boolean
58
     */
59 1
    public function isEnabled()
60
    {
61 1
        return $this->enabled;
62
    }
63
64
    /**
65
     * @param string $description
66
     */
67 1
    public function setDescription($description)
68
    {
69 1
        $this->description = $description;
70 1
    }
71
72
    /**
73
     * @return string
74
     */
75 1
    public function getDescription()
76
    {
77 1
        return $this->description;
78
    }
79
80
    /**
81
     * @param string $flag
82
     */
83 1
    public function setFlag($flag)
84
    {
85 1
        $this->flag = $flag;
86 1
    }
87
88
    /**
89
     * @return string
90
     */
91 1
    public function getFlag()
92
    {
93 1
        return $this->flag;
94
    }
95
}
96