public function getObjectNameByClassName($className)
    {
        if (isset($this->objects[$className]) && (!isset($this->objects[$className]['c']) || $this->objects[$className]['c'] === $className)) {
            return $className;
        }

        foreach ($this->objects as $objectName => $information) {
            if (isset($information['c']) && $information['c'] === $className) {
                return $objectName;
            }
        }
        if ($className[0] === '\\') {
            throw new \InvalidArgumentException('Class names must not start with a backslash ("' . $className . '")', 1270826088);
        }

        return false;
    }
public function getObjectNameByClassName($className)
    {
        if (isset($this->objects[$className]) && (!isset($this->objects[$className]['c']) || $this->objects[$className]['c'] === $className)) {
            return $className;
        }

        foreach ($this->objects as $objectName => $information) {
            if (isset($information['c']) && $information['c'] === $className) {
                return $objectName;
            }
        }
        if ($className[0] === '\\') {
            throw new \InvalidArgumentException('Class names must not start with a backslash ("' . $className . '")', 1270826088);
        }

        return false;
    }
public function getObjectNameByClassName ( $ className ) { if ( isset ( $ this -> objects [ $ className ] ) && ( ! isset ( $ this -> objects [ $ className ] [ 'c' ] ) || $ this -> objects [ $ className ] [ 'c' ] === $ className ) ) { return $ className ; } foreach ( $ this -> objects as $ objectName => $ information ) { if ( isset ( $ information [ 'c' ] ) && $ information [ 'c' ] === $ className ) { return $ objectName ; } } if ( $ className [ 0 ] === '\\' ) { throw new \ InvalidArgumentException ( 'Class names must not start with a backslash ("' . $ className . '")' , 1270826088 ) ; } return false ; }
Returns the object name corresponding to a given class name.

@param string $className The class name
@return string The object name corresponding to the given class name or false if no object is configured to use that class
@throws \InvalidArgumentException
@api
Returns the object name corresponding to a given class name .