public function getScope()
    {
        $scope = $this->getData('scope');

        if ($scope === null) {
            $scope = ContainerScopeInterface::SCOPE_DEFAULT;

            if ($this->getContainerCode()) {
                $scope = ContainerScopeInterface::SCOPE_CONTAINERS;
            }
            if ($this->getStoreCode()) {
                $scope = ContainerScopeInterface::SCOPE_STORE_CONTAINERS;
            }

            $this->setScope($scope);
        }

        return $scope;
    }
public function getScope()
    {
        $scope = $this->getData('scope');

        if ($scope === null) {
            $scope = ContainerScopeInterface::SCOPE_DEFAULT;

            if ($this->getContainerCode()) {
                $scope = ContainerScopeInterface::SCOPE_CONTAINERS;
            }
            if ($this->getStoreCode()) {
                $scope = ContainerScopeInterface::SCOPE_STORE_CONTAINERS;
            }

            $this->setScope($scope);
        }

        return $scope;
    }
public function getScope ( ) { $ scope = $ this -> getData ( 'scope' ) ; if ( $ scope === null ) { $ scope = ContainerScopeInterface :: SCOPE_DEFAULT ; if ( $ this -> getContainerCode ( ) ) { $ scope = ContainerScopeInterface :: SCOPE_CONTAINERS ; } if ( $ this -> getStoreCode ( ) ) { $ scope = ContainerScopeInterface :: SCOPE_STORE_CONTAINERS ; } $ this -> setScope ( $ scope ) ; } return $ scope ; }
Retrieve current scope

@return string
Retrieve current scope