public function getDecoder() { if ($this->foundDecoder instanceof Closure) { $closure = $this->foundDecoder; $this->foundDecoder = $closure(); } return $this->foundDecoder; }