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

RestResourceCount::afterCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 3
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * /src/Rest/Traits/RestResourceCount.php
5
 *
6
 * @author  TLe, Tarmo Leppänen <[email protected]>
7
 */
8
namespace App\Rest\Traits;
9
10
/**
11
 * Trait RestResourceCount
12
 *
13
 * @package App\Rest\Traits
14
 * @author  TLe, Tarmo Leppänen <[email protected]>
15
 */
16
trait RestResourceCount
17
{
18
    /**
19
     * Before lifecycle method for count method.
20
     *
21
     * @param array $criteria
22
     * @param array $search
23
     */
24
    public function beforeCount(array &$criteria, array &$search): void
25
    {
26
    }
27
28
    /**
29
     * Before lifecycle method for count method.
30
     *
31
     * @param array   $criteria
32
     * @param array   $search
33
     * @param integer $count
34
     */
35
    public function afterCount(array &$criteria, array &$search, int &$count): void
36
    {
37
    }
38
}
39