CsvTableConverter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toPhpUnitTable() 0 6 1
1
<?php
2
namespace Pumpkin\Database\TableConverter;
3
4
5
/**
6
 * Class CsvConverter
7
 * @package Pumpkin\Database\Converter
8
 * @author Raphaël Lefebvre <[email protected]>
9
 */
10
class CsvTableConverter extends TableConverter
11
{
12
    /**
13
     * @return \PHPUnit_Extensions_Database_DataSet_ITable
0 ignored issues
show
Documentation introduced by
Should the return type not be \PHPUnit_Extensions_Database_DataSet_ITable|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
14
     */
15 4
    public function toPhpUnitTable()
16
    {
17 4
        $dataSet = new \PHPUnit_Extensions_Database_DataSet_CsvDataSet();
18 4
        $dataSet->addTable($this->getTable()->getFullName(), $this->getTable()->getDataPath());
19 4
        return $dataSet->getTable($this->getTable()->getFullName());
20
    }
21
}
22