Skip to content

Commit 21e1097

Browse files
committed
[TASK] Avoid Hungarian notation in a class
This change does not include any breaking changes.
1 parent 0a5a654 commit 21e1097

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/Comment/Comment.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,54 +12,54 @@ class Comment implements Renderable
1212
/**
1313
* @var int
1414
*/
15-
protected $iLineNo;
15+
protected $lineNumber;
1616

1717
/**
1818
* @var string
1919
*/
20-
protected $sComment;
20+
protected $commentText;
2121

2222
/**
23-
* @param string $sComment
24-
* @param int $iLineNo
23+
* @param string $commentText
24+
* @param int $lineNumber
2525
*/
26-
public function __construct($sComment = '', $iLineNo = 0)
26+
public function __construct($commentText = '', $lineNumber = 0)
2727
{
28-
$this->sComment = $sComment;
29-
$this->iLineNo = $iLineNo;
28+
$this->commentText = $commentText;
29+
$this->lineNumber = $lineNumber;
3030
}
3131

3232
/**
3333
* @return string
3434
*/
3535
public function getComment()
3636
{
37-
return $this->sComment;
37+
return $this->commentText;
3838
}
3939

4040
/**
4141
* @return int
4242
*/
4343
public function getLineNo()
4444
{
45-
return $this->iLineNo;
45+
return $this->lineNumber;
4646
}
4747

4848
/**
49-
* @param string $sComment
49+
* @param string $commentText
5050
*/
51-
public function setComment($sComment): void
51+
public function setComment($commentText): void
5252
{
53-
$this->sComment = $sComment;
53+
$this->commentText = $commentText;
5454
}
5555

5656
public function __toString(): string
5757
{
5858
return $this->render(new OutputFormat());
5959
}
6060

61-
public function render(OutputFormat $oOutputFormat): string
61+
public function render(OutputFormat $outputFormat): string
6262
{
63-
return '/*' . $this->sComment . '*/';
63+
return '/*' . $this->commentText . '*/';
6464
}
6565
}

0 commit comments

Comments
 (0)