Completed
Push — master ( f1984f...37c291 )
by Hector
17s queued 11s
created

LineItemApp::getDeleted()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Hborras\TwitterAdsSDK\TwitterAds\Campaign;
4
5
use Hborras\TwitterAdsSDK\TwitterAds\Resource;
6
use Hborras\TwitterAdsSDK\TwitterAds\Fields\LineItemAppFields;
7
8
/**
9
 * Class LineItemApp
10
 * @package Hborras\TwitterAdsSDK\TwitterAds\Campaign
11
 */
12 View Code Duplication
class LineItemApp extends Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    const RESOURCE_COLLECTION = 'accounts/{account_id}/line_item_apps';
15
    const RESOURCE            = 'accounts/{account_id}/line_item_apps/{id}';
16
    const ENTITY              = 'LINE_ITEM_APP';
17
18
    /** Read Only */
19
    protected $id;
20
    protected $created_at;
21
    protected $updated_at;
22
    protected $deleted;
23
24
    protected $properties = [
25
        LineItemAppFields::LINE_ITEM_ID,
26
        LineItemAppFields::APP_STORE_IDENTIFIER,
27
        LineItemAppFields::OS_TYPE
28
    ];
29
30
    protected $line_item_id;
31
    protected $app_store_identifier;
32
    protected $os_type;
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 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 mixed
68
     */
69
    public function getLineItemId()
70
    {
71
        return $this->line_item_id;
72
    }
73
74
    /**
75
     * @return mixed
76
     */
77
    public function getAppStoreIdentifier()
78
    {
79
        return $this->app_store_identifier;
80
    }
81
82
    /**
83
     * @return mixed
84
     */
85
    public function getOsType()
86
    {
87
        return $this->os_type;
88
    }
89
90
    /**
91
     * @param mixed $line_item_id
92
     */
93
    public function setLineItemId($line_item_id)
94
    {
95
        $this->line_item_id = $line_item_id;
96
    }
97
98
    /**
99
     * @param mixed $app_store_identifier
100
     */
101
    public function setAppStoreIdentifier($app_store_identifier)
102
    {
103
        $this->app_store_identifier = $app_store_identifier;
104
    }
105
106
    /**
107
     * @param mixed $os_type
108
     */
109
    public function setOsType($os_type)
110
    {
111
        $this->os_type = $os_type;
112
    }
113
}
114