protected function _decode($body) { $media = $this->_classes['media']; if ($media::type($this->_type)) { $decoded = $media::decode($this->_type, $body); $body = $decoded !== null ? $decoded : $body; } return $body; }