Completed
Push — master ( 9218af...d5ea06 )
by Stéphane
13:04
created

WeightedAsset   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 26
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setWeight() 0 6 1
A getWeight() 0 4 1
1
<?php namespace Rocket\UI\Assets\Assetic\Asset;
2
3
use Assetic\Asset\FileAsset;
4
5
class WeightedAsset extends FileAsset
6
{
7
    /**
8
     * @var int
9
     */
10
    protected $weight = 0;
11
12
    /**
13
     * @return int
14
     */
15 9
    public function getWeight()
16
    {
17 9
        return $this->weight;
18
    }
19
20
    /**
21
     * @param int $weight
22
     * @return $this
23
     */
24 9
    public function setWeight($weight)
25
    {
26 9
        $this->weight = $weight;
27
28 9
        return $this;
29
    }
30
}
31