ReportSender   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A sendReport() 0 7 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * File: ReportSender.php
6
 *
7
 * @author      Maciej Sławik <[email protected]>
8
 * Github:      https://github.com/maciejslawik
9
 */
10
11
namespace MSlwk\ReactPhpPlayground\Model\Report;
12
13
use MSlwk\ReactPhpPlayground\Api\Report\ReportSenderInterface;
14
15
/**
16
 * Class ReportSender
17
 * @package MSlwk\ReactPhpPlayground\Model\Report
18
 */
19
class ReportSender implements ReportSenderInterface
20
{
21
    /**
22
     * @param string $report
23
     * @return void
24
     * @codeCoverageIgnore
25
     */
26
    public function sendReport(string $report): void
27
    {
28
        /**
29
         * Report is being sent, waiting for 3rd-party service
30
         */
31
        sleep(1);
32
    }
33
}
34