MCPcopy Create free account
hub / github.com/Rello/analytics / DatasourceEvent

Class DatasourceEvent

lib/Datasource/DatasourceEvent.php:18–43  ·  view source on GitHub ↗

* Class CommentsEntityEvent * * @since 9.1.0 */

Source from the content-addressed store, hash-verified

16 * @since 9.1.0
17 */
18class 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected