public function getClassNamesByScope($scope)
{
if (!isset($this->cachedClassNamesByScope[$scope])) {
foreach ($this->objects as $objectName => $information) {
if ($information['s'] === $scope) {
if (isset($information['c'])) {
$this->cachedClassNamesByScope[$scope][] = $information['c'];
} else {
$this->cachedClassNamesByScope[$scope][] = $objectName;
}
}
}
}
return $this->cachedClassNamesByScope[$scope];
}