mirror of
https://github.com/Neur0toxine/pock.git
synced 2024-12-01 09:26:02 +03:00
39 lines
569 B
PHP
39 lines
569 B
PHP
<?php
|
|
|
|
/**
|
|
* PHP 7.2
|
|
*
|
|
* @category SimpleObject
|
|
* @package Pock\TestUtils
|
|
*/
|
|
|
|
namespace Pock\TestUtils;
|
|
|
|
use JMS\Serializer\Annotation as JMS;
|
|
|
|
/**
|
|
* Class SimpleObject
|
|
*
|
|
* @category SimpleObject
|
|
* @package Pock\TestUtils
|
|
*/
|
|
class SimpleObject
|
|
{
|
|
public const JSON = '{"field":"test"}';
|
|
public const XML = <<<'EOF'
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<result>
|
|
<field><![CDATA[test]]></field>
|
|
</result>
|
|
|
|
EOF;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @JMS\Type("string")
|
|
* @JMS\SerializedName("field")
|
|
*/
|
|
private $field = 'test';
|
|
}
|