Passed
Push — master ( a8b983...5b3176 )
by Adrien
10:48
created

BankingInfosType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 32
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 30 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Output;
6
7
use GraphQL\Type\Definition\ObjectType;
8
9
class BankingInfosType extends ObjectType
10
{
11 1
    public function __construct()
12
    {
13
        $config = [
14 1
            'name' => 'BankingInfos',
15 1
            'description' => 'Describe permissions for current user',
16
            'fields' => [
17
                'postAccount' => [
18 1
                    'type' => self::nonNull(self::string()),
19 1
                    'description' => 'The post account number',
20
                ],
21
                'paymentTo' => [
22 1
                    'type' => self::nonNull(self::string()),
23 1
                    'description' => 'Bank coordinate the payment will be made to, eg: \'Great Bank, Cayman Islands\'',
24
                ],
25
                'paymentFor' => [
26 1
                    'type' => self::nonNull(self::string()),
27 1
                    'description' => 'Final recipient of payment, eg: \'John Doe, Main street 7, Sydney\'',
28
                ],
29
                'referenceNumber' => [
30 1
                    'type' => self::nonNull(self::string()),
31 1
                    'description' => 'The BVR reference number',
32
                ],
33
                'encodingLine' => [
34 1
                    'type' => self::nonNull(self::string()),
35 1
                    'description' => 'The BVR encoding line that include account number and may include amount if given',
36
                ],
37
            ],
38
        ];
39
40 1
        parent::__construct($config);
41 1
    }
42
}
43