ReflectionClass::getEndLine

終了行を取得する

説明

public intfalse ReflectionClass::getEndLine()

ユーザー定義クラスの定義の終了行を取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

ユーザー定義クラスの定義の終了行を返します。不明な場合は false を返します。

例1 ReflectionClass::getEndLine の例

<?php
// テストクラス
class TestClass { }

$rc = new ReflectionClass('TestClass');

echo 
$rc->getEndLine();
?>

上の例の出力は以下となります。

3

参考

  • ReflectionClass::getStartLine