Test Setup Failed
Push — master ( 9b202d...2a8146 )
by Craig
10:47 queued 13s
created

InterfaxFile   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 17
ccs 4
cts 4
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
namespace NotificationChannels\Interfax;
4
5
class InterfaxFile extends \Interfax\File
6
{
7
    /**
8
     * File constructor.
9
     *
10
     * @param $location
11
     * @param  array  $params
12
     *
13
     * @throws \InvalidArgumentException
14
     */
15 1
    public function __construct(\Interfax\Client $client, $location, $params = [], \Interfax\GenericFactory $factory = null)
16
    {
17 1
        if ($chunkSize = config('services.interfax.chunk_size')) {
18 1
            static::$DEFAULT_CHUNK_SIZE = $chunkSize;
19
        }
20
21 1
        parent::__construct($client, $location, $params, $factory);
22
    }
23
}
24