@@ -12,54 +12,54 @@ class Comment implements Renderable
12
12
/**
13
13
* @var int
14
14
*/
15
- protected $ iLineNo ;
15
+ protected $ lineNumber ;
16
16
17
17
/**
18
18
* @var string
19
19
*/
20
- protected $ sComment ;
20
+ protected $ commentText ;
21
21
22
22
/**
23
- * @param string $sComment
24
- * @param int $iLineNo
23
+ * @param string $commentText
24
+ * @param int $lineNumber
25
25
*/
26
- public function __construct ($ sComment = '' , $ iLineNo = 0 )
26
+ public function __construct ($ commentText = '' , $ lineNumber = 0 )
27
27
{
28
- $ this ->sComment = $ sComment ;
29
- $ this ->iLineNo = $ iLineNo ;
28
+ $ this ->commentText = $ commentText ;
29
+ $ this ->lineNumber = $ lineNumber ;
30
30
}
31
31
32
32
/**
33
33
* @return string
34
34
*/
35
35
public function getComment ()
36
36
{
37
- return $ this ->sComment ;
37
+ return $ this ->commentText ;
38
38
}
39
39
40
40
/**
41
41
* @return int
42
42
*/
43
43
public function getLineNo ()
44
44
{
45
- return $ this ->iLineNo ;
45
+ return $ this ->lineNumber ;
46
46
}
47
47
48
48
/**
49
- * @param string $sComment
49
+ * @param string $commentText
50
50
*/
51
- public function setComment ($ sComment ): void
51
+ public function setComment ($ commentText ): void
52
52
{
53
- $ this ->sComment = $ sComment ;
53
+ $ this ->commentText = $ commentText ;
54
54
}
55
55
56
56
public function __toString (): string
57
57
{
58
58
return $ this ->render (new OutputFormat ());
59
59
}
60
60
61
- public function render (OutputFormat $ oOutputFormat ): string
61
+ public function render (OutputFormat $ outputFormat ): string
62
62
{
63
- return '/* ' . $ this ->sComment . '*/ ' ;
63
+ return '/* ' . $ this ->commentText . '*/ ' ;
64
64
}
65
65
}
0 commit comments