Passed
Push — master ( 30b5af...c8fd96 )
by Peter
04:21
created

FileDownload::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Files\Http\Controllers\Api;
6
7
use AbterPhp\Files\Service\Execute\FileDownload as RepoService;
8
use AbterPhp\Framework\Databases\Queries\FoundRows;
9
use AbterPhp\Framework\Http\Controllers\Admin\ApiAbstract;
10
use Opulence\Http\Responses\Response;
11
use Psr\Log\LoggerInterface;
12
13
class FileDownload extends ApiAbstract
14
{
15
    const ENTITY_SINGULAR = 'fileDownload';
16
    const ENTITY_PLURAL   = 'fileDownloads';
17
18
    /**
19
     * FileDownload constructor.
20
     *
21
     * @param LoggerInterface $logger
22
     * @param RepoService     $repoService
23
     * @param FoundRows       $foundRows
24
     */
25
    public function __construct(LoggerInterface $logger, RepoService $repoService, FoundRows $foundRows)
26
    {
27
        parent::__construct($logger, $repoService, $foundRows);
28
    }
29
30
    /**
31
     * @param string $entityId
32
     *
33
     * @return Response
34
     */
35
    public function update(string $entityId): Response
36
    {
37
        $response = new Response();
38
        $response->setStatusCode(ResponseHeaders::HTTP_NOT_IMPLEMENTED);
0 ignored issues
show
Bug introduced by
The type AbterPhp\Files\Http\Cont...ers\Api\ResponseHeaders was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
39
40
        return $response;
41
    }
42
}
43