Completed
Push — test-coverage ( 951e01...59b971 )
by Tomas Norre
05:18
created

Queue   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 71.43%

Importance

Changes 0
Metric Value
dl 0
loc 35
ccs 5
cts 7
cp 0.7143
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getExecutionTime() 0 4 1
A getRow() 0 4 1
1
<?php
2
namespace AOE\Crawler\Domain\Model;
3
4
/***************************************************************
5
 *  Copyright notice
6
 *
7
 *  (c) 2017 AOE GmbH <[email protected]>
8
 *
9
 *  All rights reserved
10
 *
11
 *  This script is part of the TYPO3 project. The TYPO3 project is
12
 *  free software; you can redistribute it and/or modify
13
 *  it under the terms of the GNU General Public License as published by
14
 *  the Free Software Foundation; either version 3 of the License, or
15
 *  (at your option) any later version.
16
 *
17
 *  The GNU General Public License can be found at
18
 *  http://www.gnu.org/copyleft/gpl.html.
19
 *
20
 *  This script is distributed in the hope that it will be useful,
21
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 *  GNU General Public License for more details.
24
 *
25
 *  This copyright notice MUST APPEAR in all copies of the script!
26
 ***************************************************************/
27
28
/**
29
 * Class Queue
30
 *
31
 * @package AOE\Crawler\Domain\Model
32
 */
33
class Queue
34
{
35
    /**
36
     * @var array
37
     */
38
    protected $row;
39
40
    /**
41
     * @param array $row
42
     */
43 1
    public function __construct($row = [])
44
    {
45 1
        $this->row = $row;
46 1
    }
47
48
    /**
49
     * Returns the execution time of the record as int value
50
     *
51
     * @return integer
52
     */
53 1
    public function getExecutionTime()
54
    {
55 1
        return $this->row['exec_time'];
56
    }
57
58
    /**
59
     * Returns the properties of the object as array
60
     *
61
     * @return array
62
     */
63
    public function getRow()
64
    {
65
        return $this->row;
66
    }
67
}
68