ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilWebLinkBaseItemsContainer.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
30  protected array $items;
31 
35  public function __construct(array $items = [])
36  {
37  $this->items = $items;
38  }
39 
43  public function getItems(): array
44  {
45  return $this->items;
46  }
47 
48  public function getFirstItem(): ?ilWebLinkBaseItem
49  {
50  return $this->items[0] ?? null;
51  }
52 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...