Passed
Push — master ( 6b7895...39c748 )
by Nate
03:35
created

Element::rules()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 12
nc 1
nop 0
1
<?php
2
3
/**
4
 * @package    Spark
5
 * @author     Flipbox Factory <[email protected]>
6
 * @copyright  2010-2016 Flipbox Digital Limited
7
 * @license    https://github.com/flipbox/spark/blob/master/LICENSE
8
 * @link       https://github.com/flipbox/spark
9
 * @since      Class available since Release 1.1.0
10
 */
11
12
namespace flipbox\spark\elements;
13
14
use craft\base\Element as BaseElement;
15
use flipbox\spark\helpers\ElementHelper;
16
17
abstract class Element extends BaseElement implements interfaces\Element
18
{
19
20
    /**
21
     * @inheritdoc
22
     */
23
    public function getId(): int
24
    {
25
        return $this->id;
26
    }
27
28
    /**
29
     * @inheritdoc
30
     */
31
    public function setId(int $id)
32
    {
33
        $this->id = $id;
34
        return $this;
35
    }
36
37
}
38