Completed
Pull Request — master (#13)
by
unknown
02:14
created

Item::getBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ElevenLabs\Api\Service\Resource;
6
7
/**
8
 * Class Item.
9
 */
10
class Item implements ResourceInterface
11
{
12
    /**
13
     * @var array
14
     */
15
    private $data;
16
17
    /**
18
     * @var array
19
     */
20
    private $meta;
21
22
    /**
23
     * @var array
24
     */
25
    private $body;
26
27
    /**
28
     * Item constructor.
29
     *
30
     * @param array $data
31
     * @param array $meta
32
     * @param array $body
33
     */
34 25
    public function __construct(array $data, array $meta, array $body)
35
    {
36 25
        $this->data = $data;
37 25
        $this->meta = $meta;
38 25
        $this->body = $body;
39 25
    }
40
41
    /**
42
     * @return array
43
     */
44 4
    public function getData(): array
45
    {
46 4
        return $this->data;
47
    }
48
49
    /**
50
     * @return array
51
     */
52 4
    public function getMeta(): array
53
    {
54 4
        return $this->meta;
55
    }
56
57
    /**
58
     * @return array
59
     */
60 3
    public function getBody(): array
61
    {
62 3
        return $this->body;
63
    }
64
}
65