src/Vectorface/SnappyRouter/Response/Response.php
public function setStatusCode($statusCode)
    {
        $statusCode = intval($statusCode);
        $this->statusCode = ($statusCode > 0) ? $statusCode : self::RESPONSE_OK;
        return $this;
    }
public function setStatusCode($statusCode)
    {
        $statusCode = intval($statusCode);
        $this->statusCode = ($statusCode > 0) ? $statusCode : self::RESPONSE_OK;
        return $this;
    }
public function setStatusCode ( $ statusCode ) { $ statusCode = intval ( $ statusCode ) ; $ this -> statusCode = ( $ statusCode > 0 ) ? $ statusCode : self :: RESPONSE_OK ; return $ this ; }
Sets the HTTP status code associated with this response.
@param int $statusCode The HTTP status code associated with this response.
@return ResponseInterface Returns $this.
Sets the HTTP status code associated with this response .