Completed
Push — v4.0-dev ( b01e70 )
by
unknown
01:53
created

FuncArgs::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 4
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace League\Plates\RenderContext;
4
5
use League\Plates;
6
7
class FuncArgs extends AbstractArgs
8
{
9
    public $func_name;
10
    public $args;
11
12
    public function __construct(Plates\RenderTemplate $render, Plates\Template $template, $func_name, array $args) {
13
        parent::__construct($render, $template);
14
        $this->func_name = $func_name;
15
        $this->args = $args;
16
    }
17
18
    public function isInvoke() {
19
        return $this->func_name === null;
20
    }
21
22
    public function getName() {
23
        return $this->func_name;
24
    }
25
}
26