Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
40.00% |
2 / 5 |
|
25.00% |
1 / 4 |
CRAP | |
0.00% |
0 / 1 |
| InstanceCopiedEvent | |
40.00% |
2 / 5 |
|
25.00% |
1 / 4 |
7.46 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getInstanceUri | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getOriginInstanceUri | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace oat\tao\model\resources\Event; |
| 4 | |
| 5 | use oat\oatbox\event\Event; |
| 6 | |
| 7 | class InstanceCopiedEvent implements Event |
| 8 | { |
| 9 | private string $instanceUri; |
| 10 | private ?string $originInstanceUri; |
| 11 | |
| 12 | public function __construct(string $instanceUri, ?string $originInstanceUri = null) |
| 13 | { |
| 14 | $this->instanceUri = $instanceUri; |
| 15 | $this->originInstanceUri = $originInstanceUri; |
| 16 | } |
| 17 | |
| 18 | public function getName(): string |
| 19 | { |
| 20 | return __CLASS__; |
| 21 | } |
| 22 | |
| 23 | public function getInstanceUri(): string |
| 24 | { |
| 25 | return $this->instanceUri; |
| 26 | } |
| 27 | public function getOriginInstanceUri(): ?string |
| 28 | { |
| 29 | return $this->originInstanceUri; |
| 30 | } |
| 31 | } |