Sleep::for()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Zwartpet\PHPCertificateToolbox;
4
5
/**
6
 * In real world use, we want to sleep in between various actions. For testing, not so much.
7
 * So, we make it possible to inject a less sleepy service for testing
8
 *
9
 * @codeCoverageIgnore
10
 */
11
class Sleep
12
{
13
    public function for($seconds)
14
    {
15
        sleep($seconds);
16
    }
17
}
18