Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
new response EmptyResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Fabrégat committed Oct 8, 2018
1 parent d27fc22 commit 275efd0
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/EmptyResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
//
// +---------------------------------------------------------------------+
// | CODE INC. SOURCE CODE |
// +---------------------------------------------------------------------+
// | Copyright (c) 2018 - Code Inc. SAS - All Rights Reserved. |
// | Visit https://www.codeinc.fr for more information about licensing. |
// +---------------------------------------------------------------------+
// | NOTICE: All information contained herein is, and remains the |
// | property of Code Inc. SAS. The intellectual and technical concepts |
// | contained herein are proprietary to Code Inc. SAS are protected by |
// | trade secret or copyright law. Dissemination of this information or |
// | reproduction of this material is strictly forbidden unless prior |
// | written permission is obtained from Code Inc. SAS. |
// +---------------------------------------------------------------------+
//
// Author: Joan Fabrégat <[email protected]>
// Date: 08/10/2018
// Project: Psr7Responses
//
declare(strict_types=1);
namespace CodeInc\Psr7Responses;
use GuzzleHttp\Psr7\Response;


/**
* Class EmptyResponse
*
* @package CodeInc\Psr7Responses
* @author Joan Fabrégat <[email protected]>
*/
class EmptyResponse extends Response
{
/**
* EmptyResponse constructor.
*
* @param int $code
* @param string $reasonPhrase
* @param array $headers
* @param string $version
*/
public function __construct(int $code = 404, string $reasonPhrase = '',
array $headers = [], string $version = '1.1')
{
parent::__construct($code, $headers, '', $version, $reasonPhrase);
}
}

0 comments on commit 275efd0

Please sign in to comment.