Skip to content

Commit 5fcf61c

Browse files
committed
improved phpDoc for Latte nodes
1 parent 54b5728 commit 5fcf61c

6 files changed

Lines changed: 15 additions & 8 deletions

File tree

src/Bridges/FormsLatte/Nodes/FormContainerNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818

1919
/**
20-
* {formContainer ...}
20+
* {formContainer name} ... {/formContainer}
21+
* Enters form container context for nested controls.
2122
*/
2223
class FormContainerNode extends StatementNode
2324
{

src/Bridges/FormsLatte/Nodes/FormNode.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121

2222

2323
/**
24-
* {form name} ... {/form}
25-
* {formContext ...}
24+
* {form name [, attributes]} ... {/form}
25+
* {formContext name} ... {/formContext}
26+
* Renders form tags and initializes form context.
2627
*/
2728
class FormNode extends StatementNode
2829
{

src/Bridges/FormsLatte/Nodes/FormPrintNode.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616

1717

1818
/**
19-
* {formPrint [ClassName]}
20-
* {formClassPrint [ClassName]}
19+
* {formPrint [name]}
20+
* {formClassPrint [name]}
21+
* Generates Latte template or data class blueprint for form.
2122
*/
2223
class FormPrintNode extends StatementNode
2324
{

src/Bridges/FormsLatte/Nodes/InputErrorNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717

1818
/**
19-
* {inputError ...}
19+
* {inputError name}
20+
* Renders form control error message.
2021
*/
2122
class InputErrorNode extends StatementNode
2223
{

src/Bridges/FormsLatte/Nodes/InputNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919

2020
/**
21-
* {input ...}
21+
* {input name[:part] [, attributes]}
22+
* Renders form control HTML.
2223
*/
2324
class InputNode extends StatementNode
2425
{

src/Bridges/FormsLatte/Nodes/LabelNode.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222

2323
/**
24-
* {label ...} ... {/label}
24+
* {label name[:part] [, attributes]} ... {/label}
25+
* {label name /}
26+
* Renders form control label.
2527
*/
2628
class LabelNode extends StatementNode
2729
{

0 commit comments

Comments
 (0)