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

WeightedAsset::setWeight()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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