http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 1 LOC: 38 Statements: 5
Legend: executednot executeddead code
Source file Statements Methods Total coverage
ArrayList.php 100.0% 100.0% 100.0%
 
1
<?php
2
3
/**
4
 * Xyster Framework
5
 *
6
 * This source file is subject to the new BSD license that is bundled
7
 * with this package in the file LICENSE.txt.
8
 * It is also available through the world-wide-web at this URL:
9
 * http://www.opensource.org/licenses/bsd-license.php
10
 *
11
 * @category  Xyster
12
 * @package   Xyster_Collection
13
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
14
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
15
 */
16
namespace Xyster\Collection;
17
/**
18
 * Simple implementation of an index-based collection
19
 *
20
 * @category  Xyster
21
 * @package   Xyster_Collection
22
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
23
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
24
 */
25
class ArrayList extends AbstractList
26 1
{
27
    /**
28
     * Creates a new list
29
     *
30
     * @param ICollection $values Any values to add to this list
31
     */
32
    public function __construct(ICollection $values = null)
33
    {
34 33
        if ($values) {
35 1
            $this->merge($values);
36 1
        }
37
    }
38 1
}


Report generated at 2010-10-18T17:19:49-04:00