1 | <?php |
||
40 | class TimerConfig |
||
41 | { |
||
42 | |||
43 | /** |
||
44 | * @var \Serializable |
||
45 | */ |
||
46 | private $info; |
||
47 | |||
48 | /** |
||
49 | * Persistent by default |
||
50 | * |
||
51 | * @var boolean |
||
52 | */ |
||
53 | private $persistent = true; |
||
54 | |||
55 | /** |
||
56 | * TimerConfig constructor |
||
57 | * |
||
58 | * @param \Serializable $info The info object |
||
59 | * @param boolean $persistent The persistence flag |
||
60 | */ |
||
61 | public function __construct(\Serializable $info = null, $persistent = true) |
||
66 | |||
67 | /** |
||
68 | * Returns the serializable info object |
||
69 | * |
||
70 | * @return \Serializable |
||
71 | */ |
||
72 | public function getInfo() |
||
76 | |||
77 | /** |
||
78 | * Returns if should be persistent |
||
79 | * |
||
80 | * @return boolean |
||
81 | */ |
||
82 | public function isPersistent() |
||
86 | |||
87 | /** |
||
88 | * Sets the info object |
||
89 | * |
||
90 | * @param \Serializable $i The info object |
||
91 | * |
||
92 | * @return void |
||
93 | */ |
||
94 | public function setInfo(\Serializable $i) |
||
98 | |||
99 | /** |
||
100 | * Sets the persistence flag |
||
101 | * |
||
102 | * @param boolean $p The persistence flag |
||
103 | * |
||
104 | * @return void |
||
105 | */ |
||
106 | public function setPersistent($p) |
||
110 | } |
||
111 |