Completed
Push — master ( 17bcf1...528abf )
by Dmitry
10:53
created

EndpointProviderTrait::checkSelf()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace hiapi\endpoints;
4
5
use Closure;
6
7
trait EndpointProviderTrait
8
{
9
    // TODO: move to internal project
10
    protected function checkSelf(): Closure
11
    {
12
        return static function ($command, $next) {
13
            return $next($command);
14
        };
15
    }
16
17
    protected function input(array $inputOptions): array
18
    {
19
        // TODO: Take Tafid's Pact PR
20
        return $inputOptions;
21
    }
22
    protected function output(array $inputOptions): array
23
    {
24
        // TODO: Take Tafid's Pact PR
25
        return $inputOptions;
26
    }
27
}
28