Completed
Branch dev (31fb20)
by Raffael
03:39
created

AbstractHandler::exit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * TaskScheduler
7
 *
8
 * @author      Raffael Sahli <[email protected]>
9
 * @copyright   Copryright (c) 2017-2018 gyselroth GmbH (https://gyselroth.com)
10
 * @license     MIT https://opensource.org/licenses/MIT
11
 */
12
13
namespace TaskScheduler;
14
15
abstract class AbstractHandler
16
{
17
    /**
18
     * This method may seem useless but is actually very useful to mock the loop.
19
     */
20
    protected function loop(): bool
21
    {
22
        return true;
23
    }
24
25
    /**
26
     * This method may seem useless but is actually very useful to mock exits.
27
     */
28 1
    protected function exit(): bool
29
    {
30 1
        return true;
31
    }
32
}
33