Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the name of the class of an object
<?php get_class(object $object = ?): string
<?php     public function getCommandName()

    {

        preg_match("/\\\\([\w]+)Command$/", get_class($this->command), $matches);

        return isset($matches[1]) ? lcfirst($matches[1]).'()' : 'Method';

    }