Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
c 1
b 0
f 0
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValidActions() 0 3 1
1
<?php
2
3
namespace CloudyCity\TencentMarketingSDK\Advertising\DynamicCreative;
4
5
use CloudyCity\TencentMarketingSDK\Kernel\BaseClient;
6
use CloudyCity\TencentMarketingSDK\Resources;
7
8
class Client extends BaseClient
9
{
10
    protected $resource = Resources::DYNAMIC_CREATIVES;
11
12
    protected $fields = [
13
        'dynamic_creative_id', 'outer_adcreative_id', 'dynamic_creative_name', 'dynamic_creative_template_id',
14
        'dynamic_creative_elements', 'page_type', 'page_spec', 'deep_link_url', 'site_set', 'promoted_object_type',
15
        'promoted_object_id', 'created_time', 'last_modified_time', 'is_deleted', 'campaign_type',
16
        'impression_tracking_url', 'click_tracking_url',
17
    ];
18
19
    /**
20
     * Get all valid actions for resource.
21
     *
22
     * @return array
23
     */
24
    public function getValidActions()
25
    {
26
        return ['get', 'add', 'update'];
27
    }
28
}
29