<?php
$a = new \ReflectionClass('ZN\Database\InternalDB');
var_dump($a->getFileName());
// Output:  C:\xampp7\htdocs\develop\Internal\Database\DB\InternalDB.php(PHP 5, PHP 7, PHP 8)
ReflectionClass::getFileName — クラスが定義されているファイルのファイル名を取得する
この関数にはパラメータはありません。
   クラスが定義されているファイルのファイル名を返します。
   そのクラスが PHP のコアあるいは PHP の拡張モジュール内で定義されている場合は
   false を返します。
  
<?php
$a = new \ReflectionClass('ZN\Database\InternalDB');
var_dump($a->getFileName());
// Output:  C:\xampp7\htdocs\develop\Internal\Database\DB\InternalDB.phpPlease note that returned value from this function is actually realpath of the file and if your file is symlink, target of the link will return.