Completed
Push — master ( bba0ca...8b0d2a )
by Mr
02:55
created

Business   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A allowed() 0 14 1
1
<?php
2
3
namespace Bookeo\Models;
4
5
use Bookeo\Model;
6
7
/**
8
 * Class Business
9
 *
10
 * @codeCoverageIgnore
11
 * @package Bookeo\Models
12
 */
13
class Business extends Model
14
{
15
    /**
16
     * List of allowed fields
17
     *
18
     * @return array
19
     */
20
    public function allowed(): array
21
    {
22
        return [
23
            'id'               => 'string',             // The unique id for this business(Bookeo account) [read - only],
24
            'name'             => 'string',             // [read - only],
25
            'legalIdentifiers' => 'string, optional',   // Tax ID, Vat ID, other legal identifiers [read - only],
26
            'phoneNumbers'     => 'Array[PhoneNumber]', // [read - only],
27
            'websiteURL'       => 'string, optional',   // [read - only],
28
            'emailAddress'     => 'string, optional',   // [read - only],
29
            'streetAddress'    => 'StreetAddress',      // [read - only],
30
            'logo'             => 'Image, optional',    // [read - only],
31
            'description'      => 'string, optional',   // A description of the business, provided by the business itself . The content is in HTML . [read - only]
32
        ];
33
    }
34
}