Add doc for api

[MAILPOET-2041]
This commit is contained in:
Pavel Dohnal
2019-05-30 10:17:18 +02:00
committed by M. Shull
parent 5df3c6c46e
commit 3c8dd21701

View File

@ -8,6 +8,12 @@ use MailPoetVendor\Symfony\Component\DependencyInjection\Exception\ServiceNotFou
if (!defined('ABSPATH')) exit;
class API {
/**
* @param string $version
* @return \MailPoet\API\MP\v1\API
* @throws \Exception
*/
static function MP($version) {
$api_class = sprintf('%s\MP\%s\API', __NAMESPACE__, $version);
try {