I found this method in the context of a ticket to refactor Paris code to Doctrine. As far as I can tell, it is not used anymore and it is safe to delete it. It was added in1af5802
and was used only inside Models\Subscriber::subscribe(). Then subscribe() was moved to Subscriber\SubscriberActions in7528f0f
. Finally, commit7db2384
refactored SubscriberActions removing the only two calls to Source::setSource(). The test class SourceTest is removed as well as its only purpose was to test Source::setSource(). [MAILPOET-5345]
15 lines
441 B
PHP
15 lines
441 B
PHP
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
|
|
|
|
namespace MailPoet\Subscribers;
|
|
|
|
class Source {
|
|
const FORM = 'form';
|
|
const IMPORTED = 'imported';
|
|
const ADMINISTRATOR = 'administrator';
|
|
const API = 'api';
|
|
const WORDPRESS_USER = 'wordpress_user';
|
|
const WOOCOMMERCE_USER = 'woocommerce_user';
|
|
const WOOCOMMERCE_CHECKOUT = 'woocommerce_checkout';
|
|
const UNKNOWN = 'unknown';
|
|
}
|