Skip to content

Commit

Permalink
Move Jsonable and Xmlable to contract from utils. (#5091)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia authored Sep 18, 2022
1 parent 4632e9d commit d0d7965
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Jsonable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\Contract;

interface Jsonable
{
public function __toString(): string;
}
17 changes: 17 additions & 0 deletions src/Xmlable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\Contract;

interface Xmlable
{
public function __toString(): string;
}

0 comments on commit d0d7965

Please sign in to comment.