mirror of
https://github.com/Neur0toxine/pock.git
synced 2024-12-05 03:06:04 +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];
|
|
}
|
|
}
|