ClaimCheckFactory::__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 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
nc 1
cc 1
eloc 2
nop 1
crap 1
1
<?php
2
3
namespace Abacaphiliac\AwsSdk\ClaimCheck;
4
5
class ClaimCheckFactory implements ClaimCheckFactoryInterface
6
{
7
    /** @var  string */
8
    private $s3BucketName;
9
10
    /**
11
     * ClaimCheckFactory constructor.
12
     * @param string $s3BucketName
13
     */
14 20
    public function __construct($s3BucketName)
15
    {
16 20
        $this->s3BucketName = $s3BucketName;
17 20
    }
18
19
    /**
20
     * @param string $s3Key
21
     * @return ClaimCheck
22
     */
23 5
    public function create($s3Key = null)
24
    {
25 5
        return new ClaimCheck($this->s3BucketName, $s3Key);
26
    }
27
}
28