Skip to content

Commit 2348da8

Browse files
committed
[BF] fix method name
1 parent ca1f30e commit 2348da8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Schemas/CrudColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CrudColumn
1111
public function __construct(MigrationField $migrationField)
1212
{
1313
$this->type = $migrationField->getType();
14-
$this->field = $migrationField->getField();
14+
$this->field = $migrationField->getName();
1515
}
1616

1717
public function generateColumn(): array

src/Schemas/CrudField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CrudField
1111
public function __construct(MigrationField $migrationField)
1212
{
1313
$this->type = $migrationField->getType();
14-
$this->field = $migrationField->getField();
14+
$this->field = $migrationField->getName();
1515
}
1616

1717
public function generateField(): array

src/Schemas/MigrationField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function fillObject(string $param)
5757
/**
5858
* @return string
5959
*/
60-
public function getField()
60+
public function getName()
6161
{
6262
return $this->name;
6363
}

src/Schemas/ValidationRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(MigrationField $migrationField)
1717
}
1818

1919
$this->type = $migrationField->getType();
20-
$this->field = $migrationField->getField();
20+
$this->field = $migrationField->getName();
2121
}
2222

2323
public function generateRuleString(): ?string

0 commit comments

Comments
 (0)