| 1 |
<?php |
| 2 |
|
| 3 |
namespace Sellkit\Contact_Segmentation\Conditions; |
| 4 |
|
| 5 |
use Sellkit\Contact_Segmentation\Conditions\Condition_Base; |
| 6 |
|
| 7 |
defined( 'ABSPATH' ) || die(); |
| 8 |
|
| 9 |
/** |
| 10 |
* Class User_Type_Condition |
| 11 |
* |
| 12 |
* @package Sellkit\Contact_Segmentation\Conditions |
| 13 |
* @since 1.1.0 |
| 14 |
*/ |
| 15 |
class User_Type extends Condition_Base { |
| 16 |
|
| 17 |
/** |
| 18 |
* Condition name. |
| 19 |
* |
| 20 |
* @since 1.1.0 |
| 21 |
*/ |
| 22 |
public function get_name() { |
| 23 |
return 'user-type'; |
| 24 |
} |
| 25 |
|
| 26 |
/** |
| 27 |
* Condition title. |
| 28 |
* |
| 29 |
* @since 1.1.0 |
| 30 |
*/ |
| 31 |
public function get_title() { |
| 32 |
return __( 'User Type', 'sellkit' ); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Condition type. |
| 37 |
* |
| 38 |
* @since 1.1.0 |
| 39 |
*/ |
| 40 |
public function get_type() { |
| 41 |
return self::SELLKIT_DROP_DOWN_CONDITION_VALUE; |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* Get the options |
| 46 |
* |
| 47 |
* @since 1.1.0 |
| 48 |
* @return string[] |
| 49 |
*/ |
| 50 |
public function get_options() { |
| 51 |
return [ |
| 52 |
'first_time_visitor' => __( 'First-time visitor', 'sellkit' ), |
| 53 |
'returning_visitor' => __( 'Returning visitor', 'sellkit' ), |
| 54 |
'lead' => __( 'Lead', 'sellkit' ), |
| 55 |
'customer' => __( 'Customer', 'sellkit' ), |
| 56 |
]; |
| 57 |
} |
| 58 |
|
| 59 |
/** |
| 60 |
* It is pro feature or not. |
| 61 |
* |
| 62 |
* @since 1.1.0 |
| 63 |
*/ |
| 64 |
public function is_pro() { |
| 65 |
return false; |
| 66 |
} |
| 67 |
} |
| 68 |
|