Passed
Push — master ( de9f16...6836c0 )
by Aleksandr
02:35
created

TestingDocumentClass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A methodRules() 0 10 1
1
<?php
2
3
4
namespace carono\exchange1c\models;
5
6
class TestingDocumentClass extends TestingClass
7
{
8
    protected static $property = 'documentClass';
9
10
    protected static function methodRules()
11
    {
12
        return array_merge(parent::methodRules(), [
13
            [
14
                ['getPartner1c'],
15
                'needContext' => true,
16
                'return' => 'interface',
17
                'value' => 'carono\exchange1c\interfaces\PartnerInterface'
18
            ],
19
            [['findDocuments1c'], 'return' => 'array'],
20
        ]);
21
    }
22
}