* conventions.
*/
class MagicFunctionProvider implements EventSubscriberInterface, ProviderInterface {
+ /**
+ * @return array
+ */
public static function getSubscribedEvents() {
return array(
Events::RESOLVE => array(
*/
private $cache;
+ /**
+ *
+ */
function __construct() {
$this->cache = array();
}
+ /**
+ * @param \Civi\API\Event\ResolveEvent $event
+ */
public function onApiResolve(\Civi\API\Event\ResolveEvent $event) {
$apiRequest = $event->getApiRequest();
$resolved = $this->resolve($apiRequest);
/**
* @param string $entity
* @param string $action
+ * @param $version
+ *
* @return string
*/
protected function getFunctionName($entity, $action, $version) {
}
}
-}
\ No newline at end of file
+}