AbstractDefinition::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
/*
3
 * This file is part of the Borobudur-DependencyInjection package.
4
 *
5
 * (c) Hexacodelabs <http://hexacodelabs.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Borobudur\DependencyInjection\Definition;
12
13
use Borobudur\DependencyInjection\Definition;
14
15
/**
16
 * @author      Iqbal Maulana <[email protected]>
17
 * @created     8/9/15
18
 */
19
class AbstractDefinition extends Definition
20
{
21
    /**
22
     * Constructor.
23
     *
24
     * @param string $class
25
     * @param string $abstract
26
     * @param array  $arguments
27
     */
28
    public function __construct($class, $abstract, array $arguments = array())
29
    {
30
        parent::__construct($class, $arguments);
31
        $this->setAbstract($abstract);
32
    }
33
}
34