http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 1 LOC: 39 Statements: 5
Legend: executednot executeddead code
Source file Statements Methods Total coverage
Set.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
 * @version   $Id$
16
 */
17
namespace Xyster\Collection;
18
/**
19
 * Simple implementation of the no-duplicate collection
20
 *
21
 * @category  Xyster
22
 * @package   Xyster_Collection
23
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
24
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
25
 */
26
class Set extends AbstractSet
27 1
{
28
    /**
29
     * Creates a new set
30
     *
31
     * @param ICollection $set The values to add to this set
32
     */
33
    public function __construct(ICollection $set = null)
34
    {
35 103
        if ($set) {
36 2
            $this->merge($set);
37 2
        }
38
    }
39 1
}


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