ClaimCheckFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 23
rs 10
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A create() 0 4 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