CallTrackingPostMessage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 9 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Yproximite\Api\Message\CallTracking;
5
6
/**
7
 * Class CallTrackingPostMessage
8
 */
9
class CallTrackingPostMessage extends AbstractCallTrackingMessage
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function build()
15
    {
16
        return [
17
            'name'             => $this->getName(),
18
            'phoneDid'         => $this->getPhoneDid(),
19
            'phoneDestination' => $this->getPhoneDestination(),
20
            'callerId'         => intval($this->hasCallerId()),
21
        ];
22
    }
23
}
24