| @@ 12-113 (lines=102) @@ | ||
| 9 | * Class LineItemApp |
|
| 10 | * @package Hborras\TwitterAdsSDK\TwitterAds\Campaign |
|
| 11 | */ |
|
| 12 | class LineItemApp extends Resource |
|
| 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 | ||
| @@ 12-113 (lines=102) @@ | ||
| 9 | * Class PromotedAccount |
|
| 10 | * @package Hborras\TwitterAdsSDK\TwitterAds\Creative |
|
| 11 | */ |
|
| 12 | class PromotedAccount extends Resource |
|
| 13 | { |
|
| 14 | const RESOURCE_COLLECTION = 'accounts/{account_id}/promoted_accounts'; |
|
| 15 | const RESOURCE = 'accounts/{account_id}/promoted_accounts/{id}'; |
|
| 16 | const RESOURCE_STATS = 'stats/accounts/{account_id}/promoted_accounts/{id}'; |
|
| 17 | ||
| 18 | /** Read Only */ |
|
| 19 | protected $id; |
|
| 20 | protected $approval_status; |
|
| 21 | protected $created_at; |
|
| 22 | protected $updated_at; |
|
| 23 | protected $deleted; |
|
| 24 | ||
| 25 | protected $properties = [ |
|
| 26 | PromotedAccountFields::LINE_ITEM_ID, |
|
| 27 | PromotedAccountFields::USER_ID, |
|
| 28 | ]; |
|
| 29 | ||
| 30 | /** Writable */ |
|
| 31 | protected $line_item_id; |
|
| 32 | protected $user_id; |
|
| 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 getApprovalStatus() |
|
| 46 | { |
|
| 47 | return $this->approval_status; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @return mixed |
|
| 52 | */ |
|
| 53 | public function getCreatedAt() |
|
| 54 | { |
|
| 55 | return $this->created_at; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @return mixed |
|
| 60 | */ |
|
| 61 | public function getUpdatedAt() |
|
| 62 | { |
|
| 63 | return $this->updated_at; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @return mixed |
|
| 68 | */ |
|
| 69 | public function getDeleted() |
|
| 70 | { |
|
| 71 | return $this->deleted; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @return mixed |
|
| 76 | */ |
|
| 77 | public function getLineItemId() |
|
| 78 | { |
|
| 79 | return $this->line_item_id; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * @param mixed $line_item_id |
|
| 84 | */ |
|
| 85 | public function setLineItemId($line_item_id) |
|
| 86 | { |
|
| 87 | $this->line_item_id = $line_item_id; |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * @return mixed |
|
| 92 | */ |
|
| 93 | public function getUserId() |
|
| 94 | { |
|
| 95 | return $this->user_id; |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * @param mixed $user_id |
|
| 100 | */ |
|
| 101 | public function setUserId($user_id) |
|
| 102 | { |
|
| 103 | $this->user_id = $user_id; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * @param array $properties |
|
| 108 | */ |
|
| 109 | public function setProperties($properties) |
|
| 110 | { |
|
| 111 | $this->properties = $properties; |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||