mirror of
https://github.com/Neur0toxine/pock.git
synced 2024-11-28 15:56:09 +03:00
30 lines
489 B
PHP
30 lines
489 B
PHP
<?php
|
|
|
|
/**
|
|
* PHP 7.1
|
|
*
|
|
* @category SimpleObjectJsonSerializable
|
|
* @package Pock\TestUtils
|
|
*/
|
|
|
|
namespace Pock\TestUtils;
|
|
|
|
use JsonSerializable;
|
|
|
|
/**
|
|
* Class SimpleObjectJsonSerializable
|
|
*
|
|
* @category SimpleObjectJsonSerializable
|
|
* @package Pock\TestUtils
|
|
*/
|
|
class SimpleObjectJsonSerializable extends SimpleObject implements JsonSerializable
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function jsonSerialize(): array
|
|
{
|
|
return ['field' => $this->field];
|
|
}
|
|
}
|