Block   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Website\Http\Controllers\Api;
6
7
use AbterPhp\Admin\Http\Controllers\ApiAbstract;
8
use AbterPhp\Framework\Config\EnvReader;
9
use AbterPhp\Framework\Databases\Queries\FoundRows;
10
use AbterPhp\Website\Service\Execute\Block as RepoService;
11
use Psr\Log\LoggerInterface;
12
13
class Block extends ApiAbstract
14
{
15
    const ENTITY_SINGULAR = 'block';
16
    const ENTITY_PLURAL   = 'blocks';
17
18
    /**
19
     * Block constructor.
20
     *
21
     * @param LoggerInterface $logger
22
     * @param RepoService     $repoService
23
     * @param FoundRows       $foundRows
24
     * @param EnvReader       $envReader
25
     */
26
    public function __construct(
27
        LoggerInterface $logger,
28
        RepoService $repoService,
29
        FoundRows $foundRows,
30
        EnvReader $envReader
31
    ) {
32
        parent::__construct($logger, $repoService, $foundRows, $envReader);
33
    }
34
}
35