Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValidActions() 0 3 1
1
<?php
2
3
namespace CloudyCity\TencentMarketingSDK\Report\Hourly;
4
5
use CloudyCity\TencentMarketingSDK\Kernel\BaseClient;
6
use CloudyCity\TencentMarketingSDK\Resources;
7
8
class Client extends BaseClient
9
{
10
    protected $resource = Resources::HOURLY_REPORTS;
11
12
    protected $fields = [
13
        'campaign_id', 'adgroup_id', 'ad_id', 'hour', 'impression', 'view_count', 'valid_click_count',
14
        'activated_count', 'click', 'cost', 'download', 'conversion', 'activation', 'app_payment_count',
15
        'app_payment_amount', 'register', 'app_installation',
16
    ];
17
18
    /**
19
     * Get all valid actions for resource.
20
     *
21
     * @return array
22
     */
23
    public function getValidActions()
24
    {
25
        return ['get'];
26
    }
27
}
28