ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
class.ilString.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Export\ImportStatus\Content\Builder
;
22
23
use
ILIAS\Export\ImportStatus\I\Content\Builder\ilStringInterface
as ilImportStatusStringContentBuilderInterface;
24
use
ILIAS\Export\ImportStatus\I\Content\ilHandlerInterface
;
25
26
class
ilString
implements
ilImportStatusStringContentBuilderInterface
27
{
28
private
string
$content
;
29
30
public
function
__construct
()
31
{
32
$this->content =
''
;
33
}
34
35
public
function
toString
(): string
36
{
37
return
$this->content
;
38
}
39
40
public
function
withString
(
string
$content)
41
{
42
$clone = clone $this;
43
$clone->content =
$content
;
44
return
$clone;
45
}
46
47
public
function
mergeWith
(
ilHandlerInterface
$other):
ilHandlerInterface
48
{
49
$clone = clone $this;
50
$clone->content .= $other->
toString
();
51
return
$clone;
52
}
53
}
ILIAS\Export\ImportStatus\Content\Builder\ilString\$content
string $content
Definition:
class.ilString.php:28
ILIAS\Export\ImportStatus\I\Content\Builder\ilStringInterface
Definition:
ilStringInterface.php:25
ILIAS\Export\ImportStatus\Content\Builder
Definition:
class.ilFactory.php:21
ILIAS\Export\ImportStatus\Content\Builder\ilString\toString
toString()
Definition:
class.ilString.php:35
ILIAS\Export\ImportStatus\Content\Builder\ilString\__construct
__construct()
Definition:
class.ilString.php:30
ILIAS\Export\ImportStatus\I\Content\ilHandlerInterface\toString
toString()
ilHandlerInterface
ILIAS\Export\ImportStatus\I\Content\ilHandlerInterface
Definition:
interface.ilHandlerInterface.php:23
ILIAS\Export\ImportStatus\Content\Builder\ilString\withString
withString(string $content)
Definition:
class.ilString.php:40
ILIAS\Export\ImportStatus\Content\Builder\ilString
Definition:
class.ilString.php:26
ILIAS\Export\ImportStatus\Content\Builder\ilString\mergeWith
mergeWith(ilHandlerInterface $other)
Definition:
class.ilString.php:47
components
ILIAS
Export
classes
ImportStatus
Content
Builder
class.ilString.php
Generated on Mon Sep 1 2025 23:03:03 for ILIAS by
1.8.13 (using
Doxyfile
)