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

FuncArgs   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isInvoke() 0 3 1
A getName() 0 3 1
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