19declare(strict_types=1);
50 return $this->
get(BasicScreenContext::class,
self::C_MAIN);
58 return $this->
get(BasicScreenContext::class,
'internal');
66 return $this->
get(BasicScreenContext::class,
'external');
101 return $this->
get(BasicScreenContext::class,
self::C_LTI);
104 private function get(
string $class_name,
string $identifier) :
ScreenContext
106 if (!isset($this->contexts[$identifier])) {
107 $this->contexts[$identifier] =
new $class_name($identifier);
110 return $this->contexts[$identifier];
An exception for terminatinating execution or to throw for unit testing.