mirror of
https://github.com/Neur0toxine/pock.git
synced 2024-12-01 09:26:02 +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];
|
|
}
|
|
}
|