FreezableSimpleTrait::isFrozen()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Clippings\Freezable;
4
5
/**
6
 * @author    Haralan Dobrev <[email protected]>
7
 * @copyright 2014, Clippings Ltd.
8
 * @license   http://spdx.org/licenses/BSD-3-Clause
9
 */
10
trait FreezableSimpleTrait
11
{
12
    use FreezableTrait;
13
14
    private $frozen = false;
15
16
    /**
17
     * @{inheritdoc}
18
     */
19 1
    public function isFrozen()
20
    {
21 1
        return $this->frozen;
22
    }
23
24
    /**
25
     * @{inheritdoc}
26
     */
27 1
    private function setFrozen($frozen)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
28
    {
29 1
        $this->frozen = (bool) $frozen;
30
31 1
        return $this;
32
    }
33
}
34