SlackResponseFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 3 1
1
<?php namespace Slacky\Http;
2
3
use Slacky\Contracts\Http\Response;
4
use Slacky\Contracts\Http\ResponseFactory;
5
6
class SlackResponseFactory implements ResponseFactory {
7
8
    /**
9
     * {@inheritdoc}
10
     */
11
    public function build($body, array $headers, $statusCode): Response
12
    {
13
        return new SlackResponse($body, $headers, $statusCode);
14
    }
15
16
}
17