| 1 | <?php |
||
| 18 | class Notification implements FromArrayInterface |
||
| 19 | { |
||
| 20 | /** @var string */ |
||
| 21 | private $event; |
||
| 22 | |||
| 23 | /** @var array */ |
||
| 24 | private $trackers; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $event |
||
| 28 | * @param array $trackers |
||
| 29 | */ |
||
| 30 | public function __construct(string $event, array $trackers) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getEvent() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $event |
||
| 46 | */ |
||
| 47 | public function setEvent(string $event) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getTrackers() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param array $trackers |
||
| 62 | */ |
||
| 63 | public function setTrackers(array $trackers) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * {@inheritdoc} |
||
| 70 | */ |
||
| 71 | public static function fromArray(array $data) |
||
| 75 | } |
||
| 76 |