Code Duplication    Length = 107-110 lines in 2 locations

src/TwitterAds/Campaign/LineItemApp.php 1 location

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

src/TwitterAds/Creative/PromotedAccount.php 1 location

@@ 8-117 (lines=110) @@
5
use Hborras\TwitterAdsSDK\TwitterAds\Fields\PromotedAccountFields;
6
use Hborras\TwitterAdsSDK\TwitterAds\Resource;
7
8
class PromotedAccount extends Resource
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