Allow to set data array

This commit is contained in:
Dennis Eichhorn 2023-05-24 18:04:51 +00:00
parent 96ac1d9dff
commit 55c267f01f

View File

@ -324,7 +324,6 @@ abstract class RequestAbstract implements MessageInterface
return isset($this->data[$key])
&& $this->data[$key] !== ''
&& $this->data[$key] !== 0
&& $this->data[$key] !== null;
}
@ -353,6 +352,11 @@ abstract class RequestAbstract implements MessageInterface
return false;
}
public function fromData(array $data) : void
{
$this->data = $data;
}
/**
* Lock request for further manipulations.
*