ArrayCollection/SortedArrayList.php 1 location
|
@@ 34-42 (lines=9) @@
|
| 31 |
|
* @param array $elements |
| 32 |
|
* @param ComparatorInterface|null $criteria |
| 33 |
|
*/ |
| 34 |
|
public function __construct(array $elements = array(), ComparatorInterface $criteria = null) |
| 35 |
|
{ |
| 36 |
|
if ($criteria === null) { |
| 37 |
|
$criteria = new Comparator(); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
$this->criteria = $criteria; |
| 41 |
|
$this->addAll($elements); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
|
* {@inheritdoc} |
ArrayCollection/SortedArraySet.php 1 location
|
@@ 34-42 (lines=9) @@
|
| 31 |
|
* @param array $elements |
| 32 |
|
* @param ComparatorInterface|null $criteria |
| 33 |
|
*/ |
| 34 |
|
public function __construct(array $elements = array(), ComparatorInterface $criteria = null) |
| 35 |
|
{ |
| 36 |
|
if ($criteria === null) { |
| 37 |
|
$criteria = new Comparator(); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
$this->criteria = $criteria; |
| 41 |
|
parent::__construct($elements); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
|
* {@inheritdoc} |