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

StreetAddress   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A allowed() 0 11 1
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