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

LinkedPerson::allowed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 9.6333
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 LinkedPerson
9
 *
10
 * @codeCoverageIgnore
11
 * @package Bookeo\Models
12
 */
13
class LinkedPerson 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', // Globally unique ID that identifies this person [read-only],
24
            'firstName'                  => 'string',
25
            'middleName'                 => 'string',
26
            'lastName'                   => 'string',
27
            'emailAddress'               => 'string',
28
            'phoneNumbers'               => 'Array[PhoneNumber]',
29
            'streetAddress'              => StreetAddress::class,
30
            'creationTime'               => 'string:datetime', // [read-only],
31
            'startTimeOfNextBooking'     => 'string:datetime', // The start time of the next booking. null if there are no bookings starting after 'now'. [read-only],
32
            'startTimeOfPreviousBooking' => 'string:datetime', // The start time of the last booking that occurred before 'now'. It is updated only after that booking's stop time [read-only],
33
            'dateOfBirth'                => 'string:date',
34
            'customFields'               => 'Array[CustomField]',
35
            'gender'                     => 'string', // The gender of this person. = ['male' or 'female' or 'unknown'],
36
            'customerId'                 => 'string', // The id of the customer to whom this person is linked. [read-only]
37
        ];
38
    }
39
}
40