missing comments in civi dir
[civicrm-core.git] / Civi / API / Provider / MagicFunctionProvider.php
index ce14050bada34d5a7a1417b1c2d207ffde846cae..83d250659de2108dce757e20d8981224f153d51b 100644 (file)
@@ -34,6 +34,9 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  * conventions.
  */
 class MagicFunctionProvider implements EventSubscriberInterface, ProviderInterface {
+  /**
+   * @return array
+   */
   public static function getSubscribedEvents() {
     return array(
       Events::RESOLVE => array(
@@ -47,10 +50,16 @@ class MagicFunctionProvider implements EventSubscriberInterface, ProviderInterfa
    */
   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);
@@ -215,6 +224,8 @@ class MagicFunctionProvider implements EventSubscriberInterface, ProviderInterfa
   /**
    * @param string $entity
    * @param string $action
+   * @param $version
+   *
    * @return string
    */
   protected function getFunctionName($entity, $action, $version) {
@@ -267,4 +278,4 @@ class MagicFunctionProvider implements EventSubscriberInterface, ProviderInterfa
     }
   }
 
-}
\ No newline at end of file
+}