Completed
Push — master ( bc4f39...bfef40 )
by Mantas
03:23
created

LogIterator::readLine()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 19
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 12
CRAP Score 4

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 19
ccs 12
cts 12
cp 1
rs 9.2
cc 4
eloc 10
nc 4
nop 0
crap 4
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