/var/www/hkosl.com/nick/codeigniter/application/vendor/gettext/gettext/src/Utils/ParsedComment.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php

namespace Gettext\Utils;

/**
 * Comment parsed by PhpFunctionsScanner.
 */
class ParsedComment
{
    
/**
     * The comment itself.
     *
     * @var string
     */
    
protected $comment;

    
/**
     * The line where the function starts.
     *
     * @var int
     */
    
protected $line;

    
/**
     * Initializes the instance.
     *
     * @param string $comment The comment itself.
     * @param int    $line The line where the comment starts.
     */
    
public function __construct($comment$line)
    {
        
$this->comment $comment;
        
$this->line $line;
    }

    
/**
     * Return the comment's line number.
     *
     * @return int Line number.
     */
    
public function getLine()
    {
        return 
$this->line;
    }

    
/**
     * Return the actual comment string.
     *
     * @return string The comment.
     */
    
public function getComment()
    {
        return 
$this->comment;
    }
}