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

AtRule   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
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