Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
workgrouplistlivefeed.php
1<?php
2
11
14use Bitrix\Main\Entity\ReferenceField;
21
23{
24 private int $userId;
25
26 public function __construct(array $params = [])
27 {
28 $this->userId = (int)($params['userId'] ?? 0);
29
30 if ($this->userId <= 0)
31 {
32 throw new ArgumentException('Wrong userId value');
33 }
34 }
35
36 public function getCounterValue(): array
37 {
38 return [
39 'all' => $this->getValue(),
40 ];
41 }
42
43 public function getValue(): int
44 {
45 //todo oh
46 return 0;
47 }
48}