Skip to content

Commit

Permalink
Add more phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored and franmomu committed Sep 26, 2020
1 parent a3f119d commit 0813269
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Admin/AbstractAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ abstract class AbstractAdmin implements AdminInterface, DomainObjectInterface, A
/**
* Options to set to the form (ie, validation_groups).
*
* @var array
* @var array<string, mixed>
*/
protected $formOptions = [];

Expand Down Expand Up @@ -489,7 +489,7 @@ abstract class AbstractAdmin implements AdminInterface, DomainObjectInterface, A
/**
* The Access mapping.
*
* @var array [action1 => requiredRole1, action2 => [requiredRole2, requiredRole3]]
* @var array<string, string|string[]> [action1 => requiredRole1, action2 => [requiredRole2, requiredRole3]]
*/
protected $accessMapping = [];

Expand Down Expand Up @@ -3575,7 +3575,7 @@ protected function predefinePerPageOptions()
/**
* Return list routes with permissions name.
*
* @return array<string, string|array>
* @return array<string, string|string[]>
*/
protected function getAccess()
{
Expand Down
3 changes: 3 additions & 0 deletions src/Admin/AbstractAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public function getPersistentParameters(AdminInterface $admin)
return [];
}

/**
* @return array<string, string|string[]>
*/
public function getAccessMapping(AdminInterface $admin)
{
return [];
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/AccessRegistryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface AccessRegistryInterface
/**
* Return the controller access mapping.
*
* @return array
* @return array<string, string|string[]>
*/
public function getAccessMapping();

Expand Down
2 changes: 2 additions & 0 deletions src/Admin/AdminExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ public function getPersistentParameters(AdminInterface $admin);

/**
* Return the controller access mapping.
*
* @return array<string, string|string[]>
*/
// NEXT_MAJOR: Uncomment this method
// public function getAccessMapping(AdminInterface $admin): array;
Expand Down

0 comments on commit 0813269

Please sign in to comment.