blob: eacd9c1ea9035e1ba1b7a385b0c1629447deed07 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<?php
2
3declare(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
14namespace Carbon\PHPStan;
15
16if (!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}