getDecoder() public method

Get decoder.
public getDecoder ( ) : Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | null
return Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | null
Example #1
0
 /**
  * @return mixed
  */
 protected function getDocument()
 {
     if ($this->codecMatcher->getDecoder() === null) {
         $this->codecMatcher->findDecoder($this->getParameters()->getContentTypeHeader());
     }
     $decoder = $this->codecMatcher->getDecoder();
     return $decoder->decode($this->getIntegration()->getContent());
 }