Skip to content

Commit 110bd9b

Browse files
Rename generateField() to fieldAttributes() method in InputInterface::class. (#5)
1 parent 112ca4e commit 110bd9b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Change Log
22

3-
# 0.1.1 Under development
3+
# 0.2.0 Under development
44

55
- Enh #3: Implement interface `RenderInterface::class` (@terabytesoftw)
66
- Enh #4: Add interface `ContentInterface::class` and `LabelInterface::class` (@terabytesoftw)
7+
- Enh #5: Rename `generateField()` to `fieldAttributes()` method in `InputInterface::class` (@terabytesoftw)
78

89
## 0.1.0 February 27, 2024
910

src/InputInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public function class(string $value, bool $override = false): static;
3333
/**
3434
* Generate the id and name attributes for the field.
3535
*
36-
* @param string $modelName The name of the model.
37-
* @param string $fieldName The name of the field.
36+
* @param string $formModel The name of the model.
37+
* @param string $property The name of the property.
3838
* @param bool $arrayable Whether the field is arrayable.
3939
*
4040
* @return static A new instance or clone of the current object with the id and name attributes set.
4141
*/
42-
public function generateField(string $modelName, string $fieldName, bool $arrayable = false): static;
42+
public function fieldAttributes(string $formModel, string $property, bool $arrayable = false): static;
4343

4444
/**
4545
* Set the ID of the widget.

0 commit comments

Comments
 (0)