44
55namespace Bitrix24 \SDK \Services \CRM \Contact \Result ;
66
7- use Bitrix24 \SDK \Core \Result \AbstractItem ;
7+ use Bitrix24 \SDK \Services \CRM \Common \Result \AbstractCrmItem ;
8+ use DateTimeInterface ;
89
910/**
1011 * Class ContactItemResult
1112 *
12- * @property-read int $ID
13- * @property-read string $HONORIFIC
14- * @property-read string $NAME
15- * @property-read string $SECOND_NAME
16- * @property-read string $LAST_NAME
17- * @property-read string $PHOTO
18- * @property-read string $BIRTHDATE
19- * @property-read string $TYPE_ID
20- * @property-read string $SOURCE_ID
21- * @property-read string $SOURCE_DESCRIPTION
22- * @property-read string $POST
23- * @property-read string $ADDRESS
24- * @property-read string $ADDRESS_2
25- * @property-read string $ADDRESS_CITY
26- * @property-read string $ADDRESS_POSTAL_CODE
27- * @property-read string $ADDRESS_REGION
28- * @property-read string $ADDRESS_PROVINCE
29- * @property-read string $ADDRESS_COUNTRY
30- * @property-read string $ADDRESS_COUNTRY_CODE
31- * @property-read int $ADDRESS_LOC_ADDR_ID
32- * @property-read string $COMMENTS
33- * @property-read string $OPENED
34- * @property-read string $EXPORT
35- * @property-read string $HAS_PHONE
36- * @property-read string $HAS_EMAIL
37- * @property-read string $HAS_IMOL
38- * @property-read string $ASSIGNED_BY_ID
39- * @property-read string $CREATED_BY_ID
40- * @property-read string $MODIFY_BY_ID
41- * @property-read string $DATE_CREATE
42- * @property-read string $DATE_MODIFY
43- * @property-read string $COMPANY_ID
44- * @property-read string $COMPANY_IDS
45- * @property-read string $LEAD_ID
46- * @property-read string $ORIGINATOR_ID
47- * @property-read string $ORIGIN_ID
48- * @property-read string $ORIGIN_VERSION
49- * @property-read int $FACE_ID
50- * @property-read string $UTM_SOURCE
51- * @property-read string $UTM_MEDIUM
52- * @property-read string $UTM_CAMPAIGN
53- * @property-read string $UTM_CONTENT
54- * @property-read string $UTM_TERM
55- * @property-read string $PHONE
56- * @property-read string $EMAIL
57- * @property-read string $WEB
58- * @property-read string $IM
13+ * @property-read int $ID
14+ * @property-read string $HONORIFIC
15+ * @property-read string $NAME
16+ * @property-read string $SECOND_NAME
17+ * @property-read string $LAST_NAME
18+ * @property-read string $PHOTO
19+ * @property-read null|DateTimeInterface $BIRTHDATE
20+ * @property-read string $TYPE_ID
21+ * @property-read string $SOURCE_ID
22+ * @property-read string $SOURCE_DESCRIPTION
23+ * @property-read string $POST
24+ * @property-read string $ADDRESS
25+ * @property-read string $ADDRESS_2
26+ * @property-read string $ADDRESS_CITY
27+ * @property-read string $ADDRESS_POSTAL_CODE
28+ * @property-read string $ADDRESS_REGION
29+ * @property-read string $ADDRESS_PROVINCE
30+ * @property-read string $ADDRESS_COUNTRY
31+ * @property-read string $ADDRESS_COUNTRY_CODE
32+ * @property-read int $ADDRESS_LOC_ADDR_ID
33+ * @property-read string $COMMENTS
34+ * @property-read string $OPENED
35+ * @property-read bool $EXPORT
36+ * @property-read string $HAS_PHONE
37+ * @property-read string $HAS_EMAIL
38+ * @property-read string $HAS_IMOL
39+ * @property-read int $ASSIGNED_BY_ID
40+ * @property-read int $CREATED_BY_ID
41+ * @property-read int $MODIFY_BY_ID
42+ * @property-read DateTimeInterface $DATE_CREATE
43+ * @property-read DateTimeInterface $DATE_MODIFY
44+ * @property-read string $COMPANY_ID
45+ * @property-read string $COMPANY_IDS
46+ * @property-read string $LEAD_ID
47+ * @property-read string $ORIGINATOR_ID
48+ * @property-read string $ORIGIN_ID
49+ * @property-read string $ORIGIN_VERSION
50+ * @property-read int $FACE_ID
51+ * @property-read string $UTM_SOURCE
52+ * @property-read string $UTM_MEDIUM
53+ * @property-read string $UTM_CAMPAIGN
54+ * @property-read string $UTM_CONTENT
55+ * @property-read string $UTM_TERM
56+ * @property-read string $PHONE
57+ * @property-read string $EMAIL
58+ * @property-read string $WEB
59+ * @property-read string $IM
5960 */
60- class ContactItemResult extends AbstractItem
61+ class ContactItemResult extends AbstractCrmItem
6162{
63+ /**
64+ * @param string $userfieldName
65+ *
66+ * @return mixed|null
67+ * @throws \Bitrix24\SDK\Services\CRM\Userfield\Exceptions\UserfieldNotFoundException
68+ */
69+ public function getUserfieldByFieldName (string $ userfieldName )
70+ {
71+ return $ this ->getKeyWithUserfieldByFieldName ($ userfieldName );
72+ }
6273}
0 commit comments