Skip to content

Commit e2f87a9

Browse files
committed
UserFunction should inherts from Block
1 parent 001f788 commit e2f87a9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ClassTemplate/UserFunction.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@
55
use ClassTemplate\Renderable;
66
use ClassTemplate\Indenter;
77

8-
class UserFunction extends Statement implements Renderable
8+
class UserFunction extends Block implements Renderable
99
{
1010
public $name;
1111
public $arguments = array();
1212

13-
public $body;
1413
public $bodyArguments = array();
1514

1615
public $indentLevel = 0;
1716

17+
/**
18+
* @var Block
19+
*
20+
* The body block
21+
*/
1822
public $block;
1923

2024
/**

0 commit comments

Comments
 (0)