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;
}