mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 00:59:49 +01:00
1c11626f0a
Rather than automatically deriving getType() from the class name.
16 lines
309 B
PHP
16 lines
309 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Node\Scalar\MagicConst;
|
|
|
|
use PhpParser\Node\Scalar\MagicConst;
|
|
|
|
class Line extends MagicConst
|
|
{
|
|
public function getName() : string {
|
|
return '__LINE__';
|
|
}
|
|
|
|
function getType() : string {
|
|
return 'Scalar_MagicConst_Line';
|
|
}
|
|
} |