Completed
Push — 15.x ( e72789...2d1ea5 )
by Tim
01:37
created

Handler::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * TechDivision\Import\Configuration\Jms\Configuration\Logger\Handler
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to the Open Software License (OSL 3.0)
9
 * that is available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * PHP version 5
13
 *
14
 * @author    Tim Wagner <[email protected]>
15
 * @copyright 2016 TechDivision GmbH <[email protected]>
16
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
 * @link      https://github.com/techdivision/import-configuration-jms
18
 * @link      http://www.techdivision.com
19
 */
20
21
namespace TechDivision\Import\Configuration\Jms\Configuration\Logger;
22
23
use JMS\Serializer\Annotation\Type;
24
use JMS\Serializer\Annotation\SerializedName;
25
use TechDivision\Import\Configuration\Jms\Configuration\ParamsTrait;
26
use TechDivision\Import\Configuration\Logger\HandlerConfigurationInterface;
27
28
/**
29
 * The logger's handler configuration.
30
 *
31
 * @author    Tim Wagner <[email protected]>
32
 * @copyright 2016 TechDivision GmbH <[email protected]>
33
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
34
 * @link      https://github.com/techdivision/import-configuration-jms
35
 * @link      http://www.techdivision.com
36
 */
37
class Handler implements HandlerConfigurationInterface
0 ignored issues
show
Bug introduced by
There is one abstract method getType in this class; you could implement it, or declare this class as abstract.
Loading history...
38
{
39
40
    /**
41
     * The trait that provides parameter handling functionality.
42
     *
43
     * @var \TechDivision\Import\Configuration\Jms\Configuration\ParamsTrait
44
     */
45
    use ParamsTrait;
46
47
    /**
48
     * The handler's DI ID to use.
49
     *
50
     * @var string
51
     * @Type("string")
52
     */
53
    protected $id;
54
55
    /**
56
     * The handler's formatter to use.
57
     *
58
     * @var \TechDivision\Import\Configuration\Logger\FormatterConfigurationInterface
59
     * @Type("TechDivision\Import\Configuration\Jms\Configuration\Logger\Formatter")
60
     */
61
    protected $formatter;
62
63
    /**
64
     * The swift mailer logger configuration to use.
65
     *
66
     * @var \TechDivision\Import\Configuration\Jms\Configuration\SwiftMailer
67
     * @Type("TechDivision\Import\Configuration\Jms\Configuration\SwiftMailer")
68
     * @SerializedName("swift-mailer")
69
     */
70
    protected $swiftMailer;
71
72
    /**
73
     * Return's the handler's DI ID to use.
74
     *
75
     * @return string The DI ID
76
     */
77
    public function getId()
78
    {
79
        return $this->id;
80
    }
81
82
    /**
83
     * Return's the handler's formtter to use.
84
     *
85
     * @return \TechDivision\Import\Configuration\Logger\FormatterConfigurationInterface
86
     */
87
    public function getFormatter()
88
    {
89
        return $this->formatter;
90
    }
91
92
    /**
93
     * Return's the swift mailer configuration to use.
94
     *
95
     * @return \TechDivision\Import\Configuration\Jms\Configuration\SwiftMailer The swift mailer configuration to use
96
     */
97
    public function getSwiftMailer()
98
    {
99
        return $this->swiftMailer;
100
    }
101
}
102