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

CustomFieldDefinitions::allowed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
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 CustomFieldDefinitions
9
 *
10
 * @codeCoverageIgnore
11
 * @package Bookeo\Models
12
 */
13
class CustomFieldDefinitions extends Model
14
{
15
    /**
16
     * List of allowed fields
17
     *
18
     * @return array
19
     */
20
    public function allowed(): array
21
    {
22
        return [
23
            'choiceFields' => 'Array[ChoiceCustomField]', // A list of choice custom fields. The property is not present if there are no choice fields [read-only],
24
            'numberFields' => 'Array[NumberCustomField]', // A list of number custom fields. The property is not present if there are no number fields [read-only],
25
            'onOffFields'  => 'Array[OnOffCustomField]',  // A list of on/off custom fields. The property is not present if there are no on/off fields [read-only],
26
            'textFields'   => 'Array[TextCustomField]',   // A list of text custom fields. The property is not present if there are no text fields [read-only]
27
        ];
28
    }
29
}
30