Completed
Push — master ( f5eef4...aa2564 )
by Dmitry
01:36
created

Procedure::__invoke()   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 0
1
<?php
2
3
namespace Tarantool\Mapper;
4
5
use Tarantool\Mapper\Plugin\Procedure as ProcedurePlugin;
6
7
abstract class Procedure
8
{
9
    private $plugin;
10
11
    public function __construct(ProcedurePlugin $plugin)
12
    {
13
        $this->plugin = $plugin;
14
    }
15
16
    abstract public function getBody() : string;
17
    abstract public function getParams() : array;
18
19
    public function __invoke()
20
    {
21
        return $this->plugin->invoke($this, func_get_args());
22
    }
23
}
24