php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php
Nikita Popov 1c11626f0a Add explicit getType() methods
Rather than automatically deriving getType() from the class name.
2017-11-12 21:27:14 +01:00

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';
}
}