protected function containerName($container = null)
    {
        if ($container !== null) {
            return $container;
        }

        $pos = strrpos($this->entity, '\\');
        if ($pos === false) {
            return $this->entity;
        }

        return substr($this->entity, strrpos($this->entity, '\\') + 1);
    }
protected function containerName($container = null)
    {
        if ($container !== null) {
            return $container;
        }

        $pos = strrpos($this->entity, '\\');
        if ($pos === false) {
            return $this->entity;
        }

        return substr($this->entity, strrpos($this->entity, '\\') + 1);
    }
protected function containerName ( $ container = null ) { if ( $ container !== null ) { return $ container ; } $ pos = strrpos ( $ this -> entity , '\\' ) ; if ( $ pos === false ) { return $ this -> entity ; } return substr ( $ this -> entity , strrpos ( $ this -> entity , '\\' ) + 1 ) ; }
Returns container name or builds it from namespaced class name if passed name is empty string

@param null|string $container

@return string
Returns container name or builds it from namespaced class name if passed name is empty string