Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** |
| 6 | * This file is part of the Carbon package. |
| 7 | * |
| 8 | * (c) Brian Nesbitt <brian@nesbot.com> |
| 9 | * |
| 10 | * For the full copyright and license information, please view the LICENSE |
| 11 | * file that was distributed with this source code. |
| 12 | */ |
| 13 | |
| 14 | namespace Carbon\PHPStan; |
| 15 | |
| 16 | if (!class_exists(LazyMacro::class, false)) { |
| 17 | abstract class LazyMacro extends AbstractMacro |
| 18 | { |
| 19 | /** |
| 20 | * {@inheritdoc} |
| 21 | */ |
| 22 | public function getFileName(): ?string |
| 23 | { |
| 24 | return $this->reflectionFunction->getFileName(); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * {@inheritdoc} |
| 29 | */ |
| 30 | public function getStartLine(): ?int |
| 31 | { |
| 32 | return $this->reflectionFunction->getStartLine(); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * {@inheritdoc} |
| 37 | */ |
| 38 | public function getEndLine(): ?int |
| 39 | { |
| 40 | return $this->reflectionFunction->getEndLine(); |
| 41 | } |
| 42 | } |
| 43 | } |