Moves current API under JSON namespace

This commit is contained in:
Vlad
2017-05-09 20:17:29 -04:00
parent b727ba423e
commit 398d7d3d80
38 changed files with 86 additions and 86 deletions

16
lib/API/JSON/Error.php Normal file
View File

@ -0,0 +1,16 @@
<?php
namespace MailPoet\API\JSON;
if(!defined('ABSPATH')) exit;
final class Error {
const UNKNOWN = 'unknown';
const BAD_REQUEST = 'bad_request';
const UNAUTHORIZED = 'unauthorized';
const FORBIDDEN = 'forbidden';
const NOT_FOUND = 'not_found';
private function __construct() {
}
}