Move dynamic segments from Premium plugin

[MAILPOET-2382]
This commit is contained in:
Jan Jakeš
2019-10-03 09:37:46 +02:00
committed by Jack Kitterhing
parent 0af9f09f50
commit 70a89b7939
41 changed files with 2674 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
namespace MailPoet\Premium\DynamicSegments\Exceptions;
class ErrorSavingException extends \Exception {
}

View File

@ -0,0 +1,15 @@
<?php
namespace MailPoet\Premium\DynamicSegments\Exceptions;
class InvalidSegmentTypeException extends \Exception {
const MISSING_TYPE = 1;
const INVALID_TYPE = 2;
const MISSING_ROLE = 3;
const MISSING_ACTION = 4;
const MISSING_NEWSLETTER_ID = 5;
const MISSING_CATEGORY_ID = 6;
const MISSING_PRODUCT_ID = 7;
};