Completed
Push — develop ( 3644a8...72e19e )
by Nate
06:59
created

ObjectCriteria::fetch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/hubspot/license
6
 * @link       https://www.flipboxfactory.com/software/hubspot/
7
 */
8
9
namespace flipbox\hubspot\criteria;
10
11
use flipbox\ember\helpers\ObjectHelper;
12
use yii\base\BaseObject;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class ObjectCriteria extends BaseObject implements ObjectCriteriaInterface
19
{
20
    use traits\TransformerCollectionTrait,
21
        traits\ConnectionTrait,
22
        traits\CacheTrait;
23
24
    /**
25
     * @var string
26
     */
27
    public $id = '';
28
29
    /**
30
     * @var mixed
31
     */
32
    public $payload = '';
33
34
    /**
35
     * @return mixed
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getPayload()
46
    {
47
        return $this->payload;
48
    }
49
50
    /**
51
     * @inheritdoc
52
     */
53
    protected function prepare(array $criteria = [])
54
    {
55
        ObjectHelper::populate(
56
            $this,
57
            $criteria
58
        );
59
    }
60
61
    /**
62
     * @inheritdoc
63
     */
64
    public function fetch(array $config = [])
65
    {
66
        return null;
67
    }
68
}
69