Skip to content

Commit

Permalink
Add support of nested objects/arrays + refactoring FormModel (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Apr 21, 2023
1 parent 1739d70 commit c285689
Show file tree
Hide file tree
Showing 7 changed files with 265 additions and 107 deletions.
6 changes: 5 additions & 1 deletion .editorconfig
Expand Up @@ -10,8 +10,12 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.php]
ij_php_space_before_short_closure_left_parenthesis = false
ij_php_space_after_type_cast = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
indent_size = 2
6 changes: 6 additions & 0 deletions src/FormMetadataInterface.php
Expand Up @@ -32,6 +32,8 @@ public function getAttributeLabel(string $attribute): string;
*
* @return array attribute labels (name => label)
*
* @psalm-return array<string,string>
*
* {@see \Yiisoft\Form\FormModel::getAttributeLabel()}
*/
public function getAttributeLabels(): array;
Expand All @@ -58,6 +60,8 @@ public function getAttributeHint(string $attribute): string;
* child hints using functions such as `array_merge()`.
*
* @return array attribute hints (name => hint)
*
* @psalm-return array<string,string>
*/
public function getAttributeHints(): array;

Expand All @@ -74,6 +78,8 @@ public function getAttributePlaceholder(string $attribute): string;
* Returns the attribute placeholders.
*
* @return array attribute placeholder (name => placeholder)
*
* @psalm-return array<string,string>
*/
public function getAttributePlaceholders(): array;
}

0 comments on commit c285689

Please sign in to comment.