|
17 | 17 | * |
18 | 18 | * @package eftec\statemachineone |
19 | 19 | * @author Jorge Patricio Castro Castillo <jcastro arroba eftec dot cl> |
20 | | - * @version 2.15 2021-09-18 |
| 20 | + * @version 2.23.3 2023-06-29 |
21 | 21 | * @link https://github.com/EFTEC/StateMachineOne |
22 | 22 | */ |
23 | 23 | class Flags implements StateSerializable |
@@ -125,15 +125,15 @@ public function getTime($microtime = false) |
125 | 125 | * pull('light','lights out',2); // It removes the flag light with message light out and level 0 |
126 | 126 | * pull('light','lights out',2,400); // It removes the flag light #400 with message light out and level 0 |
127 | 127 | * </pre> |
128 | | - * @param string|int $idUnique This value is used to identify each flag |
| 128 | + * @param string|int $idUnique This value is used to identify each flag |
129 | 129 | * |
130 | | - * @param string $msg (optional) used for log |
131 | | - * @param int $level (optional) used for log |
132 | | - * @param int $idRel (optional) ID related (for example, the id of the job) used for log |
| 130 | + * @param string|null $msg (optional) used for log |
| 131 | + * @param int $level (optional) used for log |
| 132 | + * @param int $idRel (optional) ID related (for example, the id of the job) used for log |
133 | 133 | * |
134 | 134 | * @return $this |
135 | 135 | */ |
136 | | - public function pull(string $idUnique = '', string $msg = '', int $level = 0, int $idRel = 0): self |
| 136 | + public function pull(string $idUnique = '', ?string $msg = '', int $level = 0, int $idRel = 0): self |
137 | 137 | { |
138 | 138 | if (isset($this->stack[$idUnique])) { |
139 | 139 | unset($this->stack[$idUnique], $this->stackId[$idUnique], $this->timeExpire[$idUnique]); |
|
0 commit comments