Completed
Pull Request — master (#2)
by Elodie
06:10
created

CallTrackingPostMessage::setPhoneDestination()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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'         => $this->hasCallerId(),
21
        ];
22
    }
23
}
24