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

PhoneNumber   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A allowed() 0 7 1
1
<?php
2
3
namespace Bookeo\Models;
4
5
use Bookeo\Model;
6
7
class PhoneNumber extends Model
8
{
9
    /**
10
     * List of allowed fields
11
     *
12
     * @return array
13
     */
14
    public function allowed(): array
15
    {
16
        return [
17
            'number' => 'string',
18
            'type'   => 'string', // ['mobile' or 'work' or 'home' or 'fax']
19
        ];
20
    }
21
}
22