Completed
Push — master ( b579d6...72e21a )
by Hector
11:54
created

LineItemApp   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 107
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 107
rs 10
c 0
b 0
f 0
wmc 11
lcom 0
cbo 1

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getCreatedAt() 0 4 1
A getUpdatedAt() 0 4 1
A getDeleted() 0 4 1
A getProperties() 0 4 1
A getLineItemId() 0 4 1
A getAppStoreIdentifier() 0 4 1
A getOsType() 0 4 1
A setLineItemId() 0 4 1
A setAppStoreIdentifier() 0 4 1
A setOsType() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: hborras
5
 * Date: 11/01/18
6
 * Time: 21:28
7
 */
8
9
namespace Hborras\TwitterAdsSDK\TwitterAds\Campaign;
10
11
12
use Hborras\TwitterAdsSDK\TwitterAds\Fields\LineItemAppFields;
13
use Hborras\TwitterAdsSDK\TwitterAds\Resource;
14
15
class LineItemApp extends Resource
16
{
17
    const RESOURCE_COLLECTION = 'accounts/{account_id}/line_item_apps';
18
    const RESOURCE            = 'accounts/{account_id}/line_item_apps/{id}';
19
    const ENTITY              = 'LINE_ITEM_APP';
20
21
    /** Read Only */
22
    protected $id;
23
    protected $created_at;
24
    protected $updated_at;
25
    protected $deleted;
26
27
    protected $properties = [
28
        LineItemAppFields::LINE_ITEM_ID,
29
        LineItemAppFields::APP_STORE_IDENTIFIER,
30
        LineItemAppFields::OS_TYPE
31
    ];
32
33
    protected $line_item_id;
34
    protected $app_store_identifier;
35
    protected $os_type;
36
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getCreatedAt()
46
    {
47
        return $this->created_at;
48
    }
49
50
    /**
51
     * @return mixed
52
     */
53
    public function getUpdatedAt()
54
    {
55
        return $this->updated_at;
56
    }
57
58
    /**
59
     * @return mixed
60
     */
61
    public function getDeleted()
62
    {
63
        return $this->deleted;
64
    }
65
66
    /**
67
     * @return array
68
     */
69
    public function getProperties()
70
    {
71
        return $this->properties;
72
    }
73
74
    /**
75
     * @return mixed
76
     */
77
    public function getLineItemId()
78
    {
79
        return $this->line_item_id;
80
    }
81
82
    /**
83
     * @return mixed
84
     */
85
    public function getAppStoreIdentifier()
86
    {
87
        return $this->app_store_identifier;
88
    }
89
90
    /**
91
     * @return mixed
92
     */
93
    public function getOsType()
94
    {
95
        return $this->os_type;
96
    }
97
98
    /**
99
     * @param mixed $line_item_id
100
     */
101
    public function setLineItemId($line_item_id)
102
    {
103
        $this->line_item_id = $line_item_id;
104
    }
105
106
    /**
107
     * @param mixed $app_store_identifier
108
     */
109
    public function setAppStoreIdentifier($app_store_identifier)
110
    {
111
        $this->app_store_identifier = $app_store_identifier;
112
    }
113
114
    /**
115
     * @param mixed $os_type
116
     */
117
    public function setOsType($os_type)
118
    {
119
        $this->os_type = $os_type;
120
    }
121
}