ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25class Factory implements ITree\Factory
26{
27 public function __construct(
28 protected Node\Factory $node_factory,
29 ) {
30 }
31
32 public function node(): Node\Factory
33 {
34 return $this->node_factory;
35 }
36
37 public function expandable(string $label, ITree\TreeRecursion $recursion): Expandable
38 {
39 return new Expandable($label, $recursion);
40 }
41}
__construct(protected Node\Factory $node_factory,)
Definition: Factory.php:27
expandable(string $label, ITree\TreeRecursion $recursion)
Definition: Factory.php:37
This describes a Tree Control.
Definition: Expandable.php:29
Interface for mapping data-structures to the Tree.