Updated WriteAccessAllowed

This commit is contained in:
netkas 2024-10-06 16:09:27 -04:00
parent 3196c357f1
commit 0f7e2641e7

View file

@ -10,9 +10,7 @@
// write messages. Currently, holds no information. // write messages. Currently, holds no information.
/** /**
* Returns an array representation of the object * @inheritDoc
*
* @return array
*/ */
public function toArray(): array public function toArray(): array
{ {
@ -20,13 +18,15 @@
} }
/** /**
* Convert object from an array representation * @inheritDoc
*
* @param array $data
* @return WriteAccessAllowed
*/ */
public static function fromArray(array $data): self public static function fromArray(?array $data): ?WriteAccessAllowed
{ {
if($data === null)
{
return null;
}
return new self(); return new self();
} }
} }