SitePostMessage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 17 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Yproximite\Api\Message\Site;
5
6
/**
7
 * Class SitePostMessage
8
 */
9
class SitePostMessage extends AbstractSiteMessage
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function build()
15
    {
16
        return [
17
            'title'                 => $this->getTitle(),
18
            'dataParent'            => $this->getDataParentId(),
19
            'theme'                 => $this->getThemeId(),
20
            'contactEmail'          => $this->getContactEmail(),
21
            'host'                  => $this->getHost(),
22
            'defaultLocale'         => $this->getDefaultLocale(),
23
            'company'               => $this->getCompanyId(),
24
            'sendRegistrationEmail' => $this->isSendRegistrationEmail(),
25
            'zohoManager'           => $this->getZohoManager(),
26
            'zohoStatus'            => $this->getZohoStatus(),
27
            'billingStatus'         => $this->getBillingStatus(),
28
            'importRef'             => $this->getImportRef(),
29
        ];
30
    }
31
}
32