ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilHandler.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Export\ImportStatus\I\Content\ilHandlerInterface as ilImportStatusContentInterface;
24use ILIAS\Export\ImportStatus\I\ilHandlerInterface as ilImportStatusHandlerInterface;
25
26class ilHandler implements ilImportStatusHandlerInterface
27{
29 private ilImportStatusContentInterface $content;
30
31 public function __construct()
32 {
33 $this->type = StatusType::NONE;
34 }
35
36 public function getType(): StatusType
37 {
38 return $this->type;
39 }
40
41 public function withType(StatusType $type): ilImportStatusHandlerInterface
42 {
43 $clone = clone $this;
44 $clone->type = $type;
45 return $clone;
46 }
47
48 public function getContent(): ilImportStatusContentInterface
49 {
50 return $this->content;
51 }
52
53 public function withContent(ilImportStatusContentInterface $content): ilImportStatusHandlerInterface
54 {
55 $clone = clone $this;
56 $clone->content = $content;
57 return $clone;
58 }
59}
ilImportStatusContentInterface $content
withContent(ilImportStatusContentInterface $content)