ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
◀ ilDoc Overview
Wrapper.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\OERHarvester\CronJob\Results
;
22
23
use
ILIAS\Cron\Job\JobResult
;
24
25
class
Wrapper
implements
WrapperInterface
26
{
27
protected
JobResult
$result
;
28
29
public
function
__construct
(
JobResult
$result
)
30
{
31
$this->result =
$result
;
32
}
33
34
public
function
get
():
JobResult
35
{
36
return
$this->result
;
37
}
38
39
public
function
withStatus
(
int
$status):
WrapperInterface
40
{
41
$clone = clone $this;
42
$clone->result->setStatus($status);
43
return
$clone;
44
}
45
46
public
function
withMessage
(
string
$message):
WrapperInterface
47
{
48
$clone = clone $this;
49
$clone->result->setMessage($message);
50
return
$clone;
51
}
52
53
public
function
__clone
(): void
54
{
55
$this->result = clone
$this->result
;
56
}
57
}
ILIAS\Cron\Job\JobResult
Definition:
JobResult.php:24
ILIAS\MetaData\OERHarvester\CronJob\Results\Wrapper
Definition:
Wrapper.php:26
ILIAS\MetaData\OERHarvester\CronJob\Results\Wrapper\__clone
__clone()
Definition:
Wrapper.php:53
ILIAS\MetaData\OERHarvester\CronJob\Results\Wrapper\withStatus
withStatus(int $status)
Definition:
Wrapper.php:39
ILIAS\MetaData\OERHarvester\CronJob\Results\Wrapper\withMessage
withMessage(string $message)
Definition:
Wrapper.php:46
ILIAS\MetaData\OERHarvester\CronJob\Results\Wrapper\__construct
__construct(JobResult $result)
Definition:
Wrapper.php:29
ILIAS\MetaData\OERHarvester\CronJob\Results\Wrapper\$result
JobResult $result
Definition:
Wrapper.php:27
ILIAS\MetaData\OERHarvester\CronJob\Results\WrapperInterface
Definition:
WrapperInterface.php:26
ILIAS\MetaData\OERHarvester\CronJob\Results
Definition:
NullWrapper.php:21
components
ILIAS
MetaData
classes
OERHarvester
CronJob
Results
Wrapper.php
Generated on Sun Apr 5 2026 23:03:26 for ILIAS by
1.9.4 (using
Doxyfile
)