data = $data; $this->isBase64Encoded = $isBase64Encoded; } public function getMetadataStatement(): MetadataStatement { if (null === $this->statement) { $json = $this->data; if ($this->isBase64Encoded) { $json = base64_decode($this->data, true); } $statement = json_decode($json, true); $this->statement = MetadataStatement::createFromArray($statement); } return $this->statement; } }