LogIterator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 7
Bugs 2 Features 0
Metric Value
wmc 2
c 7
b 2
f 0
lcom 0
cbo 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFileHandler() 0 8 2
1
<?php
2
3
/*
4
 * (c) Mantas Varatiejus <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace MVar\Apache2LogParser;
11
12
use MVar\Apache2LogParser\Exception\ParserException;
13
14
/**
15
 * This is the class that helps to iterate through log file.
16
 *
17
 * @deprecated Will be removed in 3.0. Use \MVar\LogParser\LogIterator instead.
18
 */
19
class LogIterator extends \MVar\LogParser\LogIterator
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function getFileHandler()
25
    {
26
        try {
27
            return parent::getFileHandler();
28
        } catch (\MVar\LogParser\Exception\ParserException $exception) {
29
            throw new ParserException($exception->getMessage(), $exception->getCode(), $exception);
0 ignored issues
show
Deprecated Code introduced by
The class MVar\Apache2LogParser\Exception\ParserException has been deprecated with message: Will be removed in 3.0. Use \MVar\LogParser\Exception\ParserException instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
30
        }
31
    }
32
}
33