ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Builder.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
20
22
26
27class Builder implements BuilderInterface
28{
29 protected array $properties;
30
31 public function __construct()
32 {
33 $this->properties = [];
34 }
35
36 public function withProperty(
37 string $key,
38 string $value
40 $clone = clone $this;
41 $clone->properties[$key] = $value;
42 return $clone;
43 }
44
45 public function getList(): PropertyListInterface
46 {
47 return new PropertyList($this->properties);
48 }
49}
withProperty(string $key, string $value)
Definition: Builder.php:36