ReflectionClass::getExtension

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

Description

public function getExtension(): ?ReflectionExtension

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

Gets a ReflectionExtension object for the extension which defined the class.

Return Values

  • mixed - A ReflectionExtension object representing the extension which defined the class, or NULL for user-defined classes.