Passed
Branch master (f271f4)
by Tarmo
32:34
created

RestResourceDelete   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 2
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * /src/Rest/Traits/RestResourceDelete.php
5
 *
6
 * @author  TLe, Tarmo Leppänen <[email protected]>
7
 */
8
namespace App\Rest\Traits;
9
10
use App\Entity\EntityInterface;
11
12
/**
13
 * Trait RestResourceDelete
14
 *
15
 * @package App\Rest\Traits
16
 * @author  TLe, Tarmo Leppänen <[email protected]>
17
 */
18
trait RestResourceDelete
19
{
20
    /**
21
     * Before lifecycle method for delete method.
22
     *
23
     * @param string          $id
24
     * @param EntityInterface $entity
25
     */
26
    public function beforeDelete(string &$id, EntityInterface $entity): void
27
    {
28
    }
29
30
    /**
31
     * After lifecycle method for delete method.
32
     *
33
     * @param string          $id
34
     * @param EntityInterface $entity
35
     */
36
    public function afterDelete(string &$id, EntityInterface $entity): void
37
    {
38
    }
39
}
40