Converter::addHandler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Kaliop\EzFindSearchEngineBundle\Core\Persistence\eZFind\Content\Search\Common\Gateway;
4
5
abstract class Converter
6
{
7
    /**
8
     * @var Handler[]
9
     */
10
    protected $handlers;
11
12
    /**
13
     * Construct from an optional array of handlers.
14
     *
15
     * @param Handler[] $handlers
16
     */
17
    public function __construct(array $handlers = array())
18
    {
19
        $this->handlers = $handlers;
20
    }
21
22
    /**
23
     * Adds handler.
24
     *
25
     * @param Handler $handler
26
     */
27
    public function addHandler(Handler $handler)
28
    {
29
        $this->handlers[] = $handler;
30
    }
31
}
32