PEAR2_Pyrus_Developer-0.4.0PEAR2_Pyrus_Developer-0.4.0/php/PEAR2/Pyrus/Developer/CoverageAnalyzer/Web/LineSummary.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
<?php
namespace PEAR2\Pyrus\Developer\CoverageAnalyzer\Web;
use PEAR2\Pyrus\Developer\CoverageAnalyzer\SourceFile;
class LineSummary extends \ArrayIterator
{
    public $source;
    public $line;

    function __construct($source, $line)
    {
        $this->source = $source;
        $this->line   = $line;
        parent::__construct($source->getLineLinks($this->line));
    }

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

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