Skip to content

Commit cc60c6a

Browse files
committed
Return types on UI trait
1 parent bb9c3c3 commit cc60c6a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Entity/Utility/UiTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ private function initComponentGroups(): void
5050
/**
5151
* @return Collection|ComponentGroup[]
5252
*/
53-
public function getComponentGroups()
53+
public function getComponentGroups(): Collection|array
5454
{
5555
return $this->componentGroups;
5656
}
5757

5858
/**
5959
* @return static
6060
*/
61-
public function setComponentGroups(iterable $componentGroups)
61+
public function setComponentGroups(iterable $componentGroups): static
6262
{
6363
$this->componentGroups = new ArrayCollection();
6464
foreach ($componentGroups as $componentGroup) {
@@ -71,7 +71,7 @@ public function setComponentGroups(iterable $componentGroups)
7171
/**
7272
* @return static
7373
*/
74-
public function addComponentGroup(ComponentGroup $componentGroup)
74+
public function addComponentGroup(ComponentGroup $componentGroup): static
7575
{
7676
if (!$this->componentGroups->contains($componentGroup)) {
7777
$this->componentGroups->add($componentGroup);
@@ -83,7 +83,7 @@ public function addComponentGroup(ComponentGroup $componentGroup)
8383
/**
8484
* @return static
8585
*/
86-
public function removeComponentGroup(ComponentGroup $componentGroup)
86+
public function removeComponentGroup(ComponentGroup $componentGroup): static
8787
{
8888
if ($this->componentGroups->contains($componentGroup)) {
8989
$this->componentGroups->removeElement($componentGroup);

0 commit comments

Comments
 (0)