Skip to content

Commit

Permalink
rename Contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshige committed Jun 30, 2020
1 parent 2e4e744 commit 04c2c14
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ $ composer require chanshige/whois 'v5.0'
```php
<?php
use Chanshige\WhoisFactory;
use Chanshige\Constants\WhoisInterface;
use Chanshige\Contracts\WhoisInterface;

$whois = (new WhoisFactory())->newInstance();
/** @see WhoisInterface */
Expand Down
Expand Up @@ -7,12 +7,13 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Chanshige\Constants;

namespace Chanshige\Contracts;

/**
* Interface ResponseParserInterface
*
* @package Chanshige\Constants
* @package Chanshige\Contracts
*/
interface ResponseParserInterface
{
Expand Down
Expand Up @@ -7,12 +7,13 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Chanshige\Constants;

namespace Chanshige\Contracts;

/**
* Interface WhoisInterface
*
* @package Chanshige\Constants
* @package Chanshige\Contracts
*/
interface WhoisInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Response.php
Expand Up @@ -11,7 +11,7 @@

namespace Chanshige;

use Chanshige\Constants\ResponseParserInterface;
use Chanshige\Contracts\ResponseParserInterface;
use Traversable;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Whois.php
Expand Up @@ -13,8 +13,8 @@

use Chanshige\Collection\CountryCode;
use Chanshige\Collection\Servers;
use Chanshige\Constants\ResponseParserInterface;
use Chanshige\Constants\WhoisInterface;
use Chanshige\Contracts\ResponseParserInterface;
use Chanshige\Contracts\WhoisInterface;
use Chanshige\Exception\InvalidQueryException;
use Chanshige\Handler\SocketInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/WhoisFactory.php
Expand Up @@ -11,7 +11,7 @@

namespace Chanshige;

use Chanshige\Constants\WhoisInterface;
use Chanshige\Contracts\WhoisInterface;
use Chanshige\Handler\Socket;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/WhoisTest.php
Expand Up @@ -88,7 +88,7 @@ public function testRequest()
{
$whois = new Whois(new Socket(), new Response());
$result = $whois->query('tanakashigeki.com')->response();
$this->assertInstanceOf('Chanshige\Constants\ResponseParserInterface', $result);
$this->assertInstanceOf('Chanshige\Contracts\ResponseParserInterface', $result);
}

public function testNotFind()
Expand Down

0 comments on commit 04c2c14

Please sign in to comment.