1 | <?php |
||
8 | class ParsedComment |
||
9 | { |
||
10 | /** |
||
11 | * The comment itself. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $comment; |
||
16 | |||
17 | /** |
||
18 | * The line where the function starts. |
||
19 | * |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $line; |
||
23 | |||
24 | /** |
||
25 | * Initializes the instance. |
||
26 | * |
||
27 | * @param string $comment The comment itself. |
||
28 | * @param int $line The line where the comment starts. |
||
29 | */ |
||
30 | public function __construct($comment, $line) |
||
35 | |||
36 | /** |
||
37 | * Return the comment's line number. |
||
38 | * |
||
39 | * @return int Line number. |
||
40 | */ |
||
41 | public function getLine() |
||
45 | |||
46 | /** |
||
47 | * Return the actual comment string. |
||
48 | * |
||
49 | * @return string The comment. |
||
50 | */ |
||
51 | public function getComment() |
||
55 | } |
||
56 |