private function getDecoder() { if ($this->environment->getHeaders()->has(WebRequest::HEADER_CONTENT_TYPE) && array_key_exists($this->environment->getHeaders()->get(WebRequest::HEADER_CONTENT_TYPE), $this->decoders)) { return $this->decoders[$this->environment->getHeaders()->get(WebRequest::HEADER_CONTENT_TYPE)]; } return null; }
private function thenTheTargetShouldBe($target) { $this->assertEquals($target, $this->env->getTarget()->toString()); }