Test Failed
Push — master ( fe57db...42cd89 )
by Jonathan
12:45
created

PackageId::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * The Imaging Source Download System PHP Wrapper
6
 *
7
 * PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.
8
 *
9
 * @link      http://dl-gui.theimagingsource.com to learn more about The Imaging Source Download System
10
 * @link      https://github.com/jonathanmaron/theimagingsource-tisd-sdk for the canonical source repository
11
 * @license   https://github.com/jonathanmaron/theimagingsource-tisd-sdk/blob/master/LICENSE.md
12
 * @copyright © 2022 The Imaging Source Europe GmbH
13
 */
14
15
namespace Tisd\Sdk\Validator;
16
17
use Tisd\Sdk\Lut\PackageIdToPackage as PackageIdToPackageLut;
18
19
/**
20
 * Class PackageId
21
 *
22
 * @package Tisd\Sdk\Validator
23
 */
24
class PackageId extends AbstractValidator
25
{
26
    /**
27
     * PackageId constructor
28
     *
29
     * @param array $options
30
     */
31
    public function __construct(array $options = [])
32
    {
33
        $lut = new PackageIdToPackageLut($options);
34
35
        $this->setHaystack($lut->getKeys());
36
    }
37
}
38