src/ToolInstaller.php
public function install($class)
    {
        if (!in_array(ToolDefinition::class, class_implements($class), true)) {
            throw new \InvalidArgumentException;
        }
        
        $this->runComposer(call_user_func([$class, 'getComposer']));
        $this->updatePhpQaConfig(
            call_user_func([$class, 'getCliName']),
            $class,
            call_user_func([$class, 'getReportName'])
        );
    }
public function install($class)
    {
        if (!in_array(ToolDefinition::class, class_implements($class), true)) {
            throw new \InvalidArgumentException;
        }
        
        $this->runComposer(call_user_func([$class, 'getComposer']));
        $this->updatePhpQaConfig(
            call_user_func([$class, 'getCliName']),
            $class,
            call_user_func([$class, 'getReportName'])
        );
    }
public function install ( $ class ) { if ( ! in_array ( ToolDefinition :: class , class_implements ( $ class ) , true ) ) { throw new \ InvalidArgumentException ; } $ this -> runComposer ( call_user_func ( [ $ class , 'getComposer' ] ) ) ; $ this -> updatePhpQaConfig ( call_user_func ( [ $ class , 'getCliName' ] ) , $ class , call_user_func ( [ $ class , 'getReportName' ] ) ) ; }
Install a tool.

Read all needed information from the Tools\Analyser class and run composer

@param string $class The Tools\Analyser class name
Install a tool .