Completed
Pull Request — master (#13)
by
unknown
03:54
created

Item   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 53
ccs 11
cts 11
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getBody() 0 3 1
A __construct() 0 5 1
A getData() 0 3 1
A getMeta() 0 3 1
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