*/ public array $received_documents = []; /** @var bool $acts_as_sender */ public bool $acts_as_sender = true; /** @var bool $acts_as_receiver */ public bool $acts_as_receiver = true; /** * __construct * * @param mixed $entity */ public function __construct(mixed $entity = null) { if (!$entity) { $this->init(); return; } $entityArray = is_object($entity) ? get_object_vars($entity) : $entity; foreach ($entityArray as $key => $value) { $this->{$key} = $value; } $this->migrate(); } public function init(): self { return $this; } private function migrate(): self { return $this; } }