Item   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 26
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getData() 0 3 1
A getMeta() 0 3 1
1
<?php
2
namespace ElevenLabs\Api\Service\Resource;
3
4
class Item implements Resource
5
{
6
    /**
7
     * @var array
8
     */
9
    private $data;
10
11
    /**
12
     * @var array
13
     */
14
    private $meta;
15
16 14
    public function __construct(array $data, array $meta)
17
    {
18 14
        $this->data = $data;
19 14
        $this->meta = $meta;
20 14
    }
21
22 4
    public function getData()
23
    {
24 4
        return $this->data;
25
    }
26
27 3
    public function getMeta()
28
    {
29 3
        return $this->meta;
30
    }
31
}
32