Test Failed
Push — develop ( 92836b...51a503 )
by Jens
12:17 queued 12s
created

ClientLogging   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fieldDefinitions() 0 7 1
1
<?php
2
/**
3
 */
4
5
namespace Commercetools\Core\Model\Common;
6
7
use Commercetools\Core\Model\Customer\CustomerReference;
8
9
/**
10
 * @package Commercetools\Core\Model\Common
11
 *
12
 * @method string getClientId()
13
 * @method ClientLogging setClientId(string $clientId = null)
14
 * @method string getExternalUserId()
15
 * @method ClientLogging setExternalUserId(string $externalUserId = null)
16
 * @method CustomerReference getCustomer()
17
 * @method ClientLogging setCustomer(CustomerReference $customer = null)
18
 * @method string getAnonymousId()
19
 * @method ClientLogging setAnonymousId(string $anonymousId = null)
20
 */
21
class ClientLogging extends JsonObject
22
{
23 7
    public function fieldDefinitions()
24
    {
25
        return [
26 7
            'clientId' => [static::TYPE => 'string'],
27 7
            'externalUserId' => [static::TYPE => 'string'],
28 7
            'customer' => [static::TYPE => CustomerReference::class],
29 7
            'anonymousId' => [static::TYPE => 'string'],
30
        ];
31
    }
32
}
33