Skip to content

Commit a9258a7

Browse files
apply new coding standard - use strict types wherever possible
1 parent 7439590 commit a9258a7

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

src/PluginCrudExtensionInterface.php

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,26 @@ interface PluginCrudExtensionInterface
1010
* Returns a class name of a form type to be used
1111
*
1212
* Should return FQCN of a implementation of \Symfony\Component\Form\FormTypeInterface to be used as a sub-form
13-
*
14-
* @return string
1513
*/
16-
public function getFormTypeClass();
14+
public function getFormTypeClass(): string;
1715

1816
/**
1917
* Returns a human readable label of the sub-form
20-
*
21-
* @return string
2218
*/
23-
public function getFormLabel();
19+
public function getFormLabel(): string;
2420

2521
/**
2622
* Returns the data of an entity with provided id to be fed into the sub-form
27-
*
28-
* @param int $id
29-
* @return mixed
3023
*/
31-
public function getData($id);
24+
public function getData(int $id): mixed;
3225

3326
/**
3427
* Saves the data of an entity with provided id after submitting of the sub-form
35-
*
36-
* @param int $id
37-
* @param mixed $data
3828
*/
39-
public function saveData($id, $data): void;
29+
public function saveData(int $id, mixed $data): void;
4030

4131
/**
4232
* Removes all saved data of an entity with provided id after deleting the entity
43-
*
44-
* @param int $id
4533
*/
46-
public function removeData($id): void;
34+
public function removeData(int $id): void;
4735
}

0 commit comments

Comments
 (0)