| 1 | <?php |
||
| 16 | class Notification implements FromArrayInterface |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | private $event; |
||
| 20 | |||
| 21 | /** @var array */ |
||
| 22 | private $trackers; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $event |
||
| 26 | * @param array $trackers |
||
| 27 | */ |
||
| 28 | public function __construct(string $event, array $trackers) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getEvent() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $event |
||
| 44 | */ |
||
| 45 | public function setEvent(string $event) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function getTrackers() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param array $trackers |
||
| 60 | */ |
||
| 61 | public function setTrackers(array $trackers) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public static function fromArray(array $data) |
||
| 73 | } |
||
| 74 |