Passed
Push — master ( 44266f...d1b9e8 )
by ReliQ
04:53
created

AtRule::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ReliqArts\StyleImporter\CSS\Rule;
6
7
use ReliqArts\StyleImporter\CSS\Extractable;
8
9
abstract class AtRule implements Extractable
10
{
11
    /**
12
     * @var string
13
     */
14
    private $raw;
15
16
    /**
17
     * ImportRule constructor.
18
     *
19
     * @param string $raw
20
     */
21
    public function __construct(string $raw)
22
    {
23
        $this->raw = $raw;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function __toString(): string
30
    {
31
        return $this->raw;
32
    }
33
}
34