Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Repeater extends TwillFormComponent |
||
6 | { |
||
7 | public $buttonAsLink; |
||
8 | public $type; |
||
9 | public $max; |
||
10 | |||
11 | public function __construct( |
||
12 | $type, |
||
13 | $name = null, |
||
14 | $buttonAsLink = false, |
||
15 | $renderForBlocks = false, |
||
16 | $renderForModal = false, |
||
17 | $max = null |
||
18 | ) |
||
19 | { |
||
20 | parent::__construct($name ?? $type, $name, $renderForBlocks, $renderForModal); |
||
21 | |||
22 | $this->buttonAsLink = $buttonAsLink; |
||
23 | $this->type = $type; |
||
24 | $this->max = $max; |
||
25 | } |
||
26 | |||
27 | public function render() |
||
30 | } |
||
31 | } |
||
32 |