Completed
Push — master ( 5d7e29...cc6f2d )
by Marcus
02:36
created

CommentProperty::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace LesserPhp\Property;
4
5
/**
6
 * lesserphp
7
 * https://www.maswaba.de/lesserphp
8
 *
9
 * LESS CSS compiler, adapted from http://lesscss.org
10
 *
11
 * Copyright 2013, Leaf Corcoran <[email protected]>
12
 * Copyright 2016, Marcus Schwarz <[email protected]>
13
 * Copyright 2017, Stefan Pöhner <[email protected]>
14
 * Licensed under MIT or GPLv3, see LICENSE
15
 *
16
 * @author  Stefan Pöhner <[email protected]>
17
 *
18
 * @package LesserPhp
19
 */
20
21
class CommentProperty extends \LesserPhp\Property implements CanCompile
22
{
23
    /**
24
     * @return string
25
     */
26
    public function getComment()
27
    {
28
        return $this->getValue1();
29
    }
30
31
    /**
32
     * @inheritdoc
33
     */
34
    public function compile(\LesserPhp\Compiler $compiler)
35
    {
36
        unset($compiler);
37
38
        return $this->getComment();
39
    }
40
}
41