public function getEncoded() { if ($this->encoded === null) { $this->encoded = base64_encode($this->decoded); } return $this->encoded; }