mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
Check data existence
This commit is contained in:
parent
7b212fb8c4
commit
12b750b66a
|
|
@ -217,6 +217,20 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
return $this->data[$key] ?? null;
|
return $this->data[$key] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if has data.
|
||||||
|
*
|
||||||
|
* @param mixed $key Data key
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function hasData($key) : bool
|
||||||
|
{
|
||||||
|
return isset($this->data[$key]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set request data.
|
* Set request data.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user