1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CollabAddEvent.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Socialnetwork\Collab\Control\Event;
6
7use Bitrix\Main\Event;
8use Bitrix\Socialnetwork\Collab\Collab;
9use Bitrix\Socialnetwork\Collab\Control\Command\CollabAddCommand;
10
11class CollabAddEvent extends Event
12{
13 public function __construct(CollabAddCommand $command, Collab $collab)
14 {
15 $parameters = [
16 'command' => $command,
17 'collab' => $collab,
18 ];
19
20 parent::__construct('socialnetwork', 'OnCollabAdd', $parameters);
21 }
22
23 public function getCommand(): CollabAddCommand
24 {
25 return $this->parameters['command'];
26 }
27
28 public function getCollab(): Collab
29 {
30 return $this->parameters['collab'];
31 }
32}
Определения event.php:5
$parameters
Определения event.php:8
__construct(CollabAddCommand $command, Collab $collab)
Определения CollabAddEvent.php:13