-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81557f6
commit 0a528f8
Showing
8 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,14 @@ | |
|
||
namespace EasyCorp\Bundle\EasyAdminBundle\Collection; | ||
|
||
use ArrayIterator; | ||
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Collection\CollectionInterface; | ||
use EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDto; | ||
use EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDtoInterface; | ||
|
||
use function array_key_exists; | ||
use function count; | ||
|
||
/** | ||
* @author Javier Eguiluz <[email protected]> | ||
*/ | ||
|
@@ -48,7 +52,7 @@ public function get(string $actionName): ?ActionDtoInterface | |
|
||
public function offsetExists(mixed $offset): bool | ||
{ | ||
return \array_key_exists($offset, $this->actions); | ||
return array_key_exists($offset, $this->actions); | ||
} | ||
|
||
public function offsetGet(mixed $offset): ActionDtoInterface | ||
|
@@ -68,15 +72,15 @@ public function offsetUnset(mixed $offset): void | |
|
||
public function count(): int | ||
{ | ||
return \count($this->actions); | ||
return count($this->actions); | ||
} | ||
|
||
/** | ||
* @return \ArrayIterator<ActionDto> | ||
* @return ArrayIterator<ActionDtoInterface> | ||
*/ | ||
public function getIterator(): \ArrayIterator | ||
public function getIterator(): ArrayIterator | ||
{ | ||
return new \ArrayIterator($this->actions); | ||
return new ArrayIterator($this->actions); | ||
} | ||
|
||
public function getEntityActions(): self | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters