Completed
Push — master ( 2819a7...5729e4 )
by Hector
11s
created

PromotedAccount::getPaused()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Hborras\TwitterAdsSDK\TwitterAds\Creative;
4
5
use Hborras\TwitterAdsSDK\TwitterAds\Fields\PromotedAccountFields;
6
use Hborras\TwitterAdsSDK\TwitterAds\Resource;
7
8 View Code Duplication
class PromotedAccount 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...
9
{
10
    const RESOURCE_COLLECTION = 'accounts/{account_id}/promoted_accounts';
11
    const RESOURCE            = 'accounts/{account_id}/promoted_accounts/{id}';
12
    const RESOURCE_STATS      = 'stats/accounts/{account_id}/promoted_accounts/{id}';
13
14
    /** Read Only */
15
    protected $id;
16
    protected $approval_status;
17
    protected $created_at;
18
    protected $updated_at;
19
    protected $deleted;
20
21
    protected $properties = [
22
        PromotedAccountFields::LINE_ITEM_ID,
23
        PromotedAccountFields::USER_ID,
24
    ];
25
26
    /** Writable */
27
    protected $line_item_id;
28
    protected $user_id;
29
30
    /**
31
     * @return mixed
32
     */
33
    public function getId()
34
    {
35
        return $this->id;
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41
    public function getApprovalStatus()
42
    {
43
        return $this->approval_status;
44
    }
45
46
    /**
47
     * @return mixed
48
     */
49
    public function getCreatedAt()
50
    {
51
        return $this->created_at;
52
    }
53
54
    /**
55
     * @return mixed
56
     */
57
    public function getUpdatedAt()
58
    {
59
        return $this->updated_at;
60
    }
61
62
    /**
63
     * @return mixed
64
     */
65
    public function getDeleted()
66
    {
67
        return $this->deleted;
68
    }
69
70
    /**
71
     * @return mixed
72
     */
73
    public function getLineItemId()
74
    {
75
        return $this->line_item_id;
76
    }
77
78
    /**
79
     * @param mixed $line_item_id
80
     */
81
    public function setLineItemId($line_item_id)
82
    {
83
        $this->line_item_id = $line_item_id;
84
    }
85
86
    /**
87
     * @return mixed
88
     */
89
    public function getUserId()
90
    {
91
        return $this->user_id;
92
    }
93
94
    /**
95
     * @param mixed $user_id
96
     */
97
    public function setUserId($user_id)
98
    {
99
        $this->user_id = $user_id;
100
    }
101
102
    /**
103
     * @return array
104
     */
105
    public function getProperties()
106
    {
107
        return $this->properties;
108
    }
109
110
    /**
111
     * @param array $properties
112
     */
113
    public function setProperties($properties)
114
    {
115
        $this->properties = $properties;
116
    }
117
}
118