Completed
Branch 2.0 (cbb5ad)
by Peter
01:20
created

RuleTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setSeconds() 0 4 1
A seconds() 0 4 1
1
<?php
2
/**
3
 * AnimeDb package.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2011, Peter Gribanov
7
 */
8
9
namespace AnimeDb\SmartSleep\Rule;
10
11
trait RuleTrait
12
{
13
    /**
14
     * @var int
15
     */
16
    private $seconds = 0;
17
18
    /**
19
     * @param int $seconds
20
     */
21
    protected function setSeconds($seconds)
22
    {
23
        $this->seconds = $seconds;
24
    }
25
26
    /**
27
     * @return int
28
     */
29
    public function seconds()
30
    {
31
        return $this->seconds;
32
    }
33
}
34