get_class
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the name of the class of an object
get_class
(
object $object
= ?):
string
public function
getCommandName
()
{
preg_match
(
"/\\\\([\w]+)Command$/"
,
get_class
(
$this
->
command
),
$matches
);
return isset(
$matches
[
1
]) ?
lcfirst
(
$matches
[
1
]).
'()'
:
'Method'
;
}
src/Intervention/Image/Commands/Argument.php