File tree Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
final class SearchQueryData
14
14
{
15
+ /** @var string[] */
15
16
private array $ statuses = [];
16
17
17
18
private ?string $ type = null ;
18
19
19
20
private ?DateRangeData $ createdRange = null ;
20
21
22
+ /**
23
+ * @return string[]
24
+ */
21
25
public function getStatuses (): array
22
26
{
23
27
return $ this ->statuses ;
24
28
}
25
29
30
+ /**
31
+ * @param string[] $statuses
32
+ */
26
33
public function setStatuses (array $ statuses ): void
27
34
{
28
35
$ this ->statuses = $ statuses ;
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \FormBuilderInterface ;
16
16
use Symfony \Component \OptionsResolver \OptionsResolver ;
17
17
18
+ /**
19
+ * @extends AbstractType<SearchQueryData>
20
+ */
18
21
final class SearchType extends AbstractType
19
22
{
20
23
public function buildForm (FormBuilderInterface $ builder , array $ options ): void
Original file line number Diff line number Diff line change 10
10
11
11
class NotificationSelectionData
12
12
{
13
+ /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\Notification[] */
13
14
private array $ notifications ;
14
15
16
+ /**
17
+ * @param \Ibexa\Contracts\Core\Repository\Values\Notification\Notification[] $notifications
18
+ */
15
19
public function __construct (array $ notifications = [])
16
20
{
17
21
$ this ->notifications = $ notifications ;
18
22
}
19
23
24
+ /**
25
+ * @return \Ibexa\Contracts\Core\Repository\Values\Notification\Notification[]
26
+ */
20
27
public function getNotifications (): array
21
28
{
22
29
return $ this ->notifications ;
23
30
}
24
31
32
+ /**
33
+ * @param \Ibexa\Contracts\Core\Repository\Values\Notification\Notification[] $notifications
34
+ */
25
35
public function setNotifications (array $ notifications ): void
26
36
{
27
37
$ this ->notifications = $ notifications ;
Original file line number Diff line number Diff line change @@ -1070,7 +1070,7 @@ public function removeContentDraft(
1070
1070
* @param \Ibexa\AdminUi\Form\Data\Notification\NotificationSelectionData|null $data
1071
1071
* @param string|null $name
1072
1072
*
1073
- * @return \Symfony\Component\Form\FormInterface
1073
+ * @return \Symfony\Component\Form\FormInterface<\Ibexa\AdminUi\Form\Data\Notification\NotificationSelectionData|null>
1074
1074
*/
1075
1075
public function deleteNotification (
1076
1076
NotificationSelectionData $ data = null ,
@@ -1141,7 +1141,7 @@ public function deleteURLWildcard(
1141
1141
?URLWildcardDeleteData $ data = null ,
1142
1142
?string $ name = null
1143
1143
): FormInterface {
1144
- $ name = $ name ?: StringUtil::fqcnToBlockPrefix (URLWildcardDeleteType::class);
1144
+ $ name = ( string )( $ name ?: StringUtil::fqcnToBlockPrefix (URLWildcardDeleteType::class) );
1145
1145
1146
1146
return $ this ->formFactory ->createNamed (
1147
1147
$ name ,
Original file line number Diff line number Diff line change 16
16
use Symfony \Component \Form \FormBuilderInterface ;
17
17
use Symfony \Component \OptionsResolver \OptionsResolver ;
18
18
19
+ /**
20
+ * @extends AbstractType<NotificationSelectionData>
21
+ */
19
22
class NotificationSelectionType extends AbstractType
20
23
{
21
24
public function buildForm (FormBuilderInterface $ builder , array $ options ): void
You can’t perform that action at this time.
0 commit comments