AbstractFactory   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDelimiter() 0 4 1
A getEnclosure() 0 4 1
A getEscapeCharacter() 0 4 1
1
<?php
2
/**
3
 * @author stev leibelt <[email protected]>
4
 * @since 2015-05-06 
5
 */
6
7
namespace Net\Bazzline\Component\Csv;
8
9
/**
10
 * Class AbstractFactory
11
 * @package Net\Bazzline\Component\Csv
12
 */
13
abstract class AbstractFactory implements FactoryInterface
14
{
15
    /**
16
     * @return string
17
     */
18
    protected function getDelimiter()
19
    {
20
        return ',';
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    protected function getEnclosure()
27
    {
28
        return '"';
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    protected function getEscapeCharacter()
35
    {
36
        return "\\";
37
    }
38
}