• Full name: \App\Shared\Services\PhpFileParser
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

classFullNameFromFile

Get the full name (name \ namespace) of a class from its file path

public static classFullNameFromFile(string $filePathName): string
  • This method is static. Parameters:
Parameter Type Description
$filePathName string

classObjectFromFile

Build and return an object of a class from its file path

public static classObjectFromFile(string $filePathName, mixed $args): mixed
  • This method is static. Parameters:
Parameter Type Description
$filePathName string
$args mixed

classNamespaceFromFile

Get the class namespace from file path using token.

protected static classNamespaceFromFile(string $filePathName): null|string
  • This method is static. Parameters:
Parameter Type Description
$filePathName string

classNameFromFile

get the class name form file path using token.

protected static classNameFromFile(string $filePathName): mixed
  • This method is static. Parameters:
Parameter Type Description
$filePathName string