Skip to content

Commit ddf0daa

Browse files
authored
Merge pull request #293 from oliverklee/task/types-comment
Add type annotations for `Comment`
2 parents 066432a + d5266ac commit ddf0daa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Comment/Comment.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,20 @@
77

88
class Comment implements Renderable
99
{
10+
/**
11+
* @var int
12+
*/
1013
protected $iLineNo;
1114

15+
/**
16+
* @var string
17+
*/
1218
protected $sComment;
1319

20+
/**
21+
* @param string $sComment
22+
* @param int $iLineNo
23+
*/
1424
public function __construct($sComment = '', $iLineNo = 0)
1525
{
1626
$this->sComment = $sComment;
@@ -35,6 +45,8 @@ public function getLineNo()
3545

3646
/**
3747
* @param string $sComment
48+
*
49+
* @return void
3850
*/
3951
public function setComment($sComment)
4052
{

0 commit comments

Comments
 (0)