Completed
Push — master ( fb5b4c...bb722b )
by Nate
02:04
created

HubAccessorCriteria::dailyLimit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 0
cts 10
cp 0
rs 9.9
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\Hub;
12
use Psr\Http\Message\ResponseInterface;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 2.0.0
17
 */
18
class HubAccessorCriteria extends AbstractCriteria
19
{
20
    use ConnectionTrait,
21
        CacheTrait;
22
23
    /**
24
     * @param array $criteria
25
     * @param array $config
26
     * @return ResponseInterface
27
     */
28
    public function dailyLimit(array $criteria = [], array $config = []): ResponseInterface
29
    {
30
        $this->populate($criteria);
31
32
        return Hub::dailyLimit(
33
            $this->getConnection(),
34
            $this->getCache(),
35
            $this->getLogger(),
36
            $config
37
        );
38
    }
39
}
40