PHP Class Doctrine\Common\Collections\ArrayCollection

Since: 2.0
Author: Guilherme Blanco ([email protected])
Author: Jonathan Wage ([email protected])
Author: Roman Borschel ([email protected])
Inheritance: implements Doctrine\Common\Collections\Collection
Afficher le fichier Open project: doctrine/collections Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $elements = [] ) Initializes a new ArrayCollection.
__toString ( ) : string Returns a string representation of this object.
add ( $element ) {@inheritDoc}
clear ( ) {@inheritDoc}
contains ( $element ) {@inheritDoc}
containsKey ( $key ) {@inheritDoc}
count ( ) {@inheritDoc}
current ( ) {@inheritDoc}
exists ( Closure $p ) {@inheritDoc}
filter ( Closure $p ) {@inheritDoc}
first ( ) {@inheritDoc}
forAll ( Closure $p ) {@inheritDoc}
get ( $key ) {@inheritDoc}
getIterator ( ) Required by interface IteratorAggregate.
getKeys ( ) {@inheritDoc}
getValues ( ) {@inheritDoc}
indexOf ( $element ) {@inheritDoc}
isEmpty ( ) {@inheritDoc}
key ( ) {@inheritDoc}
last ( ) {@inheritDoc}
map ( Closure $func ) {@inheritDoc}
matching ( Doctrine\Common\Collections\Criteria $criteria ) {@inheritDoc}
next ( ) {@inheritDoc}
offsetExists ( $offset ) Required by interface ArrayAccess.
offsetGet ( $offset ) Required by interface ArrayAccess.
offsetSet ( $offset, $value ) Required by interface ArrayAccess.
offsetUnset ( $offset ) Required by interface ArrayAccess.
partition ( Closure $p ) {@inheritDoc}
remove ( $key ) {@inheritDoc}
removeElement ( $element ) {@inheritDoc}
set ( $key, $value ) {@inheritDoc}
slice ( $offset, $length = null ) {@inheritDoc}
toArray ( ) {@inheritDoc}

Méthodes protégées

Méthode Description
createFrom ( array $elements ) : static Creates a new instance from the specified elements.

Method Details

__construct() public méthode

Initializes a new ArrayCollection.
public __construct ( array $elements = [] )
$elements array

__toString() public méthode

Returns a string representation of this object.
public __toString ( ) : string
Résultat string

add() public méthode

{@inheritDoc}
public add ( $element )

clear() public méthode

{@inheritDoc}
public clear ( )

contains() public méthode

{@inheritDoc}
public contains ( $element )

containsKey() public méthode

{@inheritDoc}
public containsKey ( $key )

count() public méthode

{@inheritDoc}
public count ( )

createFrom() protected méthode

This method is provided for derived classes to specify how a new instance should be created when constructor semantics have changed.
protected createFrom ( array $elements ) : static
$elements array Elements.
Résultat static

current() public méthode

{@inheritDoc}
public current ( )

exists() public méthode

{@inheritDoc}
public exists ( Closure $p )
$p Closure

filter() public méthode

{@inheritDoc}
public filter ( Closure $p )
$p Closure

first() public méthode

{@inheritDoc}
public first ( )

forAll() public méthode

{@inheritDoc}
public forAll ( Closure $p )
$p Closure

get() public méthode

{@inheritDoc}
public get ( $key )

getIterator() public méthode

{@inheritDoc}
public getIterator ( )

getKeys() public méthode

{@inheritDoc}
public getKeys ( )

getValues() public méthode

{@inheritDoc}
public getValues ( )

indexOf() public méthode

{@inheritDoc}
public indexOf ( $element )

isEmpty() public méthode

{@inheritDoc}
public isEmpty ( )

key() public méthode

{@inheritDoc}
public key ( )

last() public méthode

{@inheritDoc}
public last ( )

map() public méthode

{@inheritDoc}
public map ( Closure $func )
$func Closure

matching() public méthode

{@inheritDoc}
public matching ( Doctrine\Common\Collections\Criteria $criteria )
$criteria Doctrine\Common\Collections\Criteria

next() public méthode

{@inheritDoc}
public next ( )

offsetExists() public méthode

{@inheritDoc}
public offsetExists ( $offset )

offsetGet() public méthode

{@inheritDoc}
public offsetGet ( $offset )

offsetSet() public méthode

{@inheritDoc}
public offsetSet ( $offset, $value )

offsetUnset() public méthode

{@inheritDoc}
public offsetUnset ( $offset )

partition() public méthode

{@inheritDoc}
public partition ( Closure $p )
$p Closure

remove() public méthode

{@inheritDoc}
public remove ( $key )

removeElement() public méthode

{@inheritDoc}
public removeElement ( $element )

set() public méthode

{@inheritDoc}
public set ( $key, $value )

slice() public méthode

{@inheritDoc}
public slice ( $offset, $length = null )

toArray() public méthode

{@inheritDoc}
public toArray ( )