PEAR2_Pyrus_DeveloperPEAR2_Pyrus_Developer-0.4.0/php/PEAR2/Pyrus/Developer/CoverageAnalyzer/Web/Summary.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
namespace PEAR2\Pyrus\Developer\CoverageAnalyzer\Web;
use PEAR2\Pyrus\Developer\CoverageAnalyzer\SourceFile;
class Summary extends \ArrayIterator
{
    public $sqlite;
    function __construct($sqlite)
    {
        $this->sqlite = $sqlite;
        parent::__construct($this->sqlite->retrievePaths());
    }

    function __call($method, $args)
    {
        return $this->sqlite->$method();
    }

    function __get($var)
    {
        return $this->sqlite->$var;
    }

    function current()
    {
        $current = parent::current();
        return new SourceFile($current, $this->sqlite, $this->sqlite->testpath, $this->sqlite->codepath, null, false);
    }
}
EOF