* Class CommentsEntityEvent * * @since 9.1.0 */
| 16 | * @since 9.1.0 |
| 17 | */ |
| 18 | class DatasourceEvent extends Event |
| 19 | { |
| 20 | |
| 21 | /** @var string */ |
| 22 | protected $event; |
| 23 | /** @var \Closure[] */ |
| 24 | protected $collections = []; |
| 25 | |
| 26 | /** |
| 27 | * @param string $datasource |
| 28 | * @since 9.1.0 |
| 29 | */ |
| 30 | public function registerDatasource(string $datasource) |
| 31 | { |
| 32 | $this->collections[] = $datasource; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * @return \Closure[] |
| 37 | * @since 9.1.0 |
| 38 | */ |
| 39 | public function getDataSources() |
| 40 | { |
| 41 | return $this->collections; |
| 42 | } |
| 43 | } |
nothing calls this directly
no outgoing calls
no test coverage detected