Completed
Push — master ( 810155...7bbbc8 )
by Mr
02:02
created

StreetAddress::allowed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
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
class StreetAddress extends Model
8
{
9
    /**
10
     * List of allowed fields
11
     *
12
     * @codeCoverageIgnore
13
     * @return array
14
     */
15
    public function allowed(): array
16
    {
17
        return [
18
            'address1'    => 'string',
19
            'address2'    => 'string',
20
            'city'        => 'string',
21
            'countryCode' => 'string', // Country code in ISO 3166-1 format,
22
            'state'       => 'string',
23
            'postcode'    => 'string',
24
        ];
25
    }
26
}
27