AdminAccessRoleCollection

Extends \AbstractCollection

Class AdminAccessRoleCollection

category

System

package

AdminAccess

subpackage

Collections

Methods

Initialize the collection instance.

__construct(array|mixed|null $argumentsArray = null) 
inherited
Throws
\InvalidArgumentException

Arguments

$argumentsArray

array|mixed|null

Adds a given role to this collection.

add(\AdminAccessRoleInterface $role) : \AdminAccessRoleCollection

Arguments

$role

\AdminAccessRoleInterface

Access role.

Response

\AdminAccessRoleCollection

Returns same instance for chained method calls.

Get collection item count.

count() : integer
inherited

Response

integer

Get the collection as an array.

getArray() : array
inherited

Response

array

Clones this collection.

getClone() : \AdminAccessRoleCollection

Response

\AdminAccessRoleCollection

Clone of role collection, so changes on clone won't affect original collection.

Get specific collection item by index.

getItem( $p_index) : mixed
inherited
Throws
\InvalidArgumentException

if index is not numeric | OutOfBoundsException if index is out of bounds

Arguments

$p_index

Response

mixed

getIterator

getIterator() 
inherited

Determine whether the collection is empty or not.

isEmpty() : boolean
inherited

Response

boolean

Removes a given role from this collection.

remove(\AdminAccessRoleInterface $role) : \AdminAccessRoleCollection
Throws
\RoleNotFoundInCollectionException

If role is not in the collection.

Arguments

$role

\AdminAccessRoleInterface

Access role.

Response

\AdminAccessRoleCollection

Returns same instance for chained method calls.

Properties