Completed
Push — master ( 17598f...abee1f )
by Kirill
13s queued 11s
created

Bucket::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Spiral Framework.
5
 *
6
 * @license   MIT
7
 * @author    Anton Titov (Wolfy-J)
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Core\Fixtures;
13
14
class Bucket
15
{
16
    /**
17
     * @var string
18
     */
19
    private $name;
20
21
    /**
22
     * @var mixed
23
     */
24
    private $data;
25
26
    /**
27
     * Bucket constructor.
28
     *
29
     * @param string $name
30
     * @param mixed  $data
31
     */
32
    public function __construct(string $name, $data = 'default-data')
33
    {
34
        $this->name = $name;
35
        $this->data = $data;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getName()
42
    {
43
        return $this->name;
44
    }
45
46
    /**
47
     * @return mixed
48
     */
49
    public function getData()
50
    {
51
        return $this->data;
52
    }
53
}
54