Passed
Branch master (fd6b1a)
by Dispositif
03:51 queued 01:13
created

AbstractMixHandler::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 4
1
<?php
2
/*
3
 * This file is part of dispositif/wikibot application (@github)
4
 * 2019-2023 © Philippe M./Irønie  <[email protected]>
5
 * For the full copyright and MIT license information, view the license file.
6
 */
7
8
declare(strict_types=1);
9
10
namespace App\Domain\Transformers\Handlers;
11
12
use App\Domain\Models\Wiki\OuvrageTemplate;
13
use App\Domain\WikiOptimizer\OptiStatus;
14
use Psr\Log\LoggerInterface;
15
16
abstract class AbstractMixHandler implements TransformHandlerInterface
17
{
18
    /**
19
     * @var OuvrageTemplate
20
     */
21
    protected $origin;
22
    /**
23
     * @var OuvrageTemplate
24
     */
25
    protected $book;
26
    /**
27
     * @var LoggerInterface
28
     */
29
    protected $log;
30
    /**
31
     * @var OptiStatus
32
     */
33
    protected $optiStatus;
34
35
    public function __construct(OuvrageTemplate $origin, OuvrageTemplate $book, LoggerInterface $log, OptiStatus $optiStatus)
36
    {
37
        $this->origin = $origin;
38
        $this->book = $book;
39
        $this->log = $log;
40
        $this->optiStatus = $optiStatus;
41
    }
42
}