1 | <?php |
||
9 | final class ParsedFunction |
||
10 | { |
||
11 | private $name; |
||
12 | private $filename; |
||
13 | private $line; |
||
14 | private $lastLine; |
||
15 | private $arguments = []; |
||
16 | private $comments = []; |
||
17 | private $argumentIsClosed = false; |
||
18 | |||
19 | public function __construct(string $name, string $filename, int $line) |
||
25 | |||
26 | public function getName(): string |
||
30 | |||
31 | public function getLine(): int |
||
35 | |||
36 | public function getLastLine(): int |
||
40 | |||
41 | public function setLastLine(int $lastLine): self |
||
47 | |||
48 | public function getFilename(): string |
||
52 | |||
53 | public function getArguments(): array |
||
57 | |||
58 | public function countArguments(): int |
||
62 | |||
63 | /** |
||
64 | * @return ParsedComments[] |
||
65 | */ |
||
66 | public function getComments(): array |
||
70 | |||
71 | public function addArgument(string $argument = null): self |
||
78 | |||
79 | public function addArgumentChunk(string $chunk): self |
||
92 | |||
93 | public function closeArgument(): self |
||
99 | |||
100 | public function addComment(ParsedComment $comment): self |
||
106 | } |