CallTrackingPostMessage::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
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