Test Failed
Push — 6-0 ( cfb4d5 )
by Tomas Norre
03:23
created

tx_crawler_domain_lib_abstract_dbobject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
dl 0
loc 44
ccs 3
cts 7
cp 0.4286
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

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