Sleep   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A for() 0 3 1
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