Api4 - Use explicit adder functions rather than magicMethod
[civicrm-core.git] / Civi / API / Kernel.php
index 651b0861a4a65259214418ed4e117cad14ae6d10..bb0f962be9c482530e8eb953676f639db8d636ea 100644 (file)
@@ -132,12 +132,12 @@ class Kernel {
   }
 
   /**
-   * Execute an API request.
+   * Execute an API v3 or v4 request.
    *
    * The request must be in canonical format. Exceptions will be propagated out.
    *
-   * @param array $apiRequest
-   * @return array
+   * @param array|\Civi\Api4\Generic\AbstractAction $apiRequest
+   * @return array|\Civi\Api4\Generic\Result
    * @throws \API_Exception
    * @throws \Civi\API\Exception\NotImplementedException
    * @throws \Civi\API\Exception\UnauthorizedException