Completed
Push — master ( f3457e...cc7259 )
by Marco
14:28
created

Execute::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Marcosh\Effector\Effect\PDOStatement;
6
7
final class Execute
8
{
9
    /**
10
     * @var \PDOStatement
11
     */
12
    private $pdoStatement;
13
14
    public function __construct(\PDOStatement $pdoStatement)
15
    {
16
        $this->pdoStatement = $pdoStatement;
17
    }
18
19
    public function __invoke(array $inputParameters): bool
20
    {
21
        return $this->pdoStatement->execute($inputParameters);
22
    }
23
}
24