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

CompanyContactsAccessorCriteria::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 11
cp 0
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
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