ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWebLinkBaseItemsContainer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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}
Base class for Web Link items.
Base container class for Web Link items.