Result::asArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 6
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * (c) Jean-François Lépine <https://twitter.com/Halleck45>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Hal\Metrics\Mood\Abstractness;
11
use Hal\Component\Result\ExportableInterface;
12
13
14
/**
15
 * Represents abstractness
16
 *
17
 * @author Jean-François Lépine <https://twitter.com/Halleck45>
18
 */
19
class Result implements ExportableInterface {
20
21
    /**
22
     * @var int
23
     */
24
    private $abstractness;
25
26
    /**
27
     * @inheritdoc
28
     */
29
    public function asArray()
30
    {
31
        return array(
32
            'abstractness' => $this->getAbstractness()
33
        );
34
    }
35
36
    /**
37
     * @param int $abstractness
38
     */
39
    public function setAbstractness($abstractness)
40
    {
41
        $this->abstractness = $abstractness;
42
    }
43
44
    /**
45
     * @return int
46
     */
47
    public function getAbstractness()
48
    {
49
        return $this->abstractness;
50
    }
51
52
}