/var/www/html_uk/wp-content/plugins/automatewoo/includes/Entity/WorkflowTimingDelayed.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php

namespace AutomateWoo\Entity;

/**
 * @class WorkflowTimingDelayed
 * @since 5.1.0
 */
class WorkflowTimingDelayed extends WorkflowTimingBase {

    const 
TYPE 'delayed';

    const 
DELAY_UNIT_MINUTE 'm';
    const 
DELAY_UNIT_HOUR   'h';
    const 
DELAY_UNIT_DAY    'd';
    const 
DELAY_UNIT_WEEK   'w';
    const 
DELAY_UNIT_MONTH  'month';

    
/**
     * @var int
     */
    
protected $delay_value;

    
/**
     * @var string
     */
    
protected $delay_unit;

    
/**
     * @param int    $delay_value
     * @param string $delay_unit
     */
    
public function __construct$delay_value$delay_unit ) {
        
$this->delay_value $delay_value;
        
$this->delay_unit  $delay_unit;
    }

    
/**
     * @return int
     */
    
public function get_delay_value() {
        return 
$this->delay_value;
    }

    
/**
     * @param int $delay_value
     * @return $this
     */
    
public function set_delay_value$delay_value ) {
        
$this->delay_value $delay_value;
        return 
$this;
    }

    
/**
     * @return int
     */
    
public function get_delay_unit() {
        return 
$this->delay_unit;
    }

    
/**
     * @param int $delay_unit
     * @return $this
     */
    
public function set_delay_unit$delay_unit ) {
        
$this->delay_unit $delay_unit;
        return 
$this;
    }
}