19 declare(strict_types=1);
    34             public function getMD(
int $obj_id, 
int $sub_id, 
string $type): 
SetInterface    36                 return new class ($obj_id, $sub_id, $type) extends 
NullSet {
    48             public function createSet(
    50                 string $description = 
'',
    53                 return new class ($title, $description, $language) extends 
NullSet {
    56                         public string $description,
    57                         public string $language
    79         $derivator = $source_selector->fromObject(7, 33, 
'type');
    81         $this->assertSame(7, $derivator->from_set->obj_id);
    82         $this->assertSame(33, $derivator->from_set->sub_id);
    83         $this->assertSame(
'type', $derivator->from_set->type);
    89         $derivator = $source_selector->fromObject(67, 0, 
'type');
    91         $this->assertSame(67, $derivator->from_set->obj_id);
    92         $this->assertSame(67, $derivator->from_set->sub_id);
    93         $this->assertSame(
'type', $derivator->from_set->type);
   100         $derivator = $source_selector->fromBasicProperties(
   102             'amazing description',
   106         $this->assertSame(
'great title', $derivator->from_set->title);
   107         $this->assertSame(
'amazing description', $derivator->from_set->description);
   108         $this->assertSame(
'best language', $derivator->from_set->language);
 
__construct()
Constructor setup ILIAS global object  public.