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

ObjectCriteria   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 5
dl 0
loc 51
ccs 0
cts 19
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getPayload() 0 4 1
A prepare() 0 7 1
A fetch() 0 4 1
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