Completed
Push — dev ( 84796b...a43988 )
by Konstantin
02:06
created

Customer::set()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace linkprofit\AmoCRM\entities;
4
5
use linkprofit\AmoCRM\traits\CompanyLinkable;
6
use linkprofit\AmoCRM\traits\ContactsLinkable;
7
8
/**
9
 * Class Customer
10
 * @package linkprofit\AmoCRM\entities
11
 */
12
class Customer extends CustomizableEntity
13
{
14
    /**
15
     * @var string Название покупателя
16
     */
17
    public $name;
18
19
    /**
20
     * @var string Дата и время следующей покупки
21
     */
22
    public $next_date;
23
24
    /**
25
     * @var integer id пользователя создавшего покупателя
26
     */
27
    public $created_by;
28
29
    /**
30
     * @var integer Ожидаемая сумма
31
     */
32
    public $next_price;
33
34
    /**
35
     * @var integer Периодичность совершаемых покупок
36
     */
37
    public $periodicity;
38
39
    /**
40
     * @var string Если вы хотите задать новые теги, перечислите их внутри строковой переменной через запятую
41
     */
42
    public $tags;
43
44
    /**
45
     * @var integer id периода цифровой воронки покупателя
46
     */
47
    public $period_id;
48
49
    /**
50
     * @var array
51
     */
52
    protected $fieldList = [
53
        'id', 'name', 'next_date', 'created_at', 'updated_at',
54
        'responsible_user_id', 'created_by', 'next_price',
55
        'periodicity', 'tags', 'period_id', 'contacts_id', 'company_id'
56
    ];
57
58
    use CompanyLinkable,
59
        ContactsLinkable;
60
}