-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssertExistsTask.php
More file actions
46 lines (40 loc) · 895 Bytes
/
Copy pathAssertExistsTask.php
File metadata and controls
46 lines (40 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
namespace Aternos\Rados\Operation\Common\Task;
use Aternos\Rados\Operation\Common\CommonOperationTask;
use Aternos\Rados\Operation\Operation;
/**
* Ensure that the object exists
*
* @extends CommonOperationTask<null>
*/
class AssertExistsTask extends CommonOperationTask
{
/**
* @inheritDoc
*/
protected function parseResult(): null
{
return null;
}
/**
* @inheritDoc
*/
protected function initTask(Operation $operation): void
{
$operation->getFFI()->{$this->getFunctionName($operation)}($operation->getCData());
}
/**
* @inheritDoc
*/
protected function getReadFunctionName(): string
{
return "rados_read_op_assert_exists";
}
/**
* @inheritDoc
*/
protected function getWriteFunctionName(): string
{
return "rados_write_op_assert_exists";
}
}