ReflectionClass::getFileName

( excerpt from http://php.net/manual/en/reflectionclass.getfilename.php )

public function getFileName(): mixed;

Gets the filename of the file in which the class has been defined.

Returns

  • mixed - Returns the filename of the file in which the class has been defined. If the class is defined in the PHP core or in a PHP extension, FALSE is returned.