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

Business::allowed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

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