Completed
Push — master ( 6e9196...c55090 )
by Nate
02:30
created

CompanyContactsAccessorCriteria   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 20
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 12 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipbox/hubspot/blob/master/LICENSE.md
6
 * @link       https://github.com/flipbox/hubspot
7
 */
8
9
namespace Flipbox\HubSpot\Criteria;
10
11
use Flipbox\HubSpot\Resources\CompanyContacts;
12
use Psr\Http\Message\ResponseInterface;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 2.0.0
17
 */
18
class CompanyContactsAccessorCriteria extends AbstractObjectAccessor
19
{
20
    /**
21
     * @param array $criteria
22
     * @param array $config
23
     * @return ResponseInterface
24
     */
25
    public function all(array $criteria = [], array $config = []): ResponseInterface
26
    {
27
        $this->populate($criteria);
28
29
        return CompanyContacts::all(
30
            $this->getId(),
31
            $this->getConnection(),
32
            $this->getCache(),
33
            $this->getLogger(),
34
            $config
35
        );
36
    }
37
}
38