Item::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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