src/Common/ClassFinder.php
public function findFirst(string $basename): ?string
    {
        $basename = $this->getClassName($basename);
        foreach ($this->namespaces as $ns) {
            if (class_exists($ns.'\\'.$basename)) {
                return $ns.'\\'.$basename;
            }
        }
        return null;
    }
public function findFirst(string $basename): ?string
    {
        $basename = $this->getClassName($basename);
        foreach ($this->namespaces as $ns) {
            if (class_exists($ns.'\\'.$basename)) {
                return $ns.'\\'.$basename;
            }
        }
        return null;
    }
public function findFirst ( string $ basename ) : ? string { $ basename = $ this -> getClassName ( $ basename ) ; foreach ( $ this -> namespaces as $ ns ) { if ( class_exists ( $ ns . '\\' . $ basename ) ) { return $ ns . '\\' . $ basename ; } } return null ; }
Return the first class name found or false

@param  string $basename
@return string|null
Return the first class name found or false