for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Analytics
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the LICENSE.md file.
* @author Marcel Scherello <[email protected]>
* @copyright 2020 Marcel Scherello
*/
namespace OCA\Analytics\Datasource;
use OCP\EventDispatcher\Event;
* Class CommentsEntityEvent
* @since 9.1.0
class DatasourceEvent extends Event
{
/** @var string */
protected $event;
/** @var \Closure[] */
protected $collections = [];
* @param string $name
* @param string $datasource
public function registerDatasource(string $datasource)
$this->collections[] = $datasource;
}
* @return \Closure[]
public function getDataSources()
return $this->collections;