mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
Allow to set data array
This commit is contained in:
parent
96ac1d9dff
commit
55c267f01f
|
|
@ -324,7 +324,6 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
|
|
||||||
return isset($this->data[$key])
|
return isset($this->data[$key])
|
||||||
&& $this->data[$key] !== ''
|
&& $this->data[$key] !== ''
|
||||||
&& $this->data[$key] !== 0
|
|
||||||
&& $this->data[$key] !== null;
|
&& $this->data[$key] !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -353,6 +352,11 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function fromData(array $data) : void
|
||||||
|
{
|
||||||
|
$this->data = $data;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lock request for further manipulations.
|
* Lock request for further manipulations.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user