2021-05-14 18:52:00 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2021-05-14 18:57:35 +03:00
|
|
|
* PHP 7.2
|
2021-05-14 18:52:00 +03:00
|
|
|
*
|
|
|
|
* @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"}';
|
2021-05-15 18:57:28 +03:00
|
|
|
public const JMS_XML = <<<'EOF'
|
2021-05-14 18:52:00 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<result>
|
|
|
|
<field><![CDATA[test]]></field>
|
|
|
|
</result>
|
|
|
|
|
|
|
|
EOF;
|
2021-05-15 18:57:28 +03:00
|
|
|
public const SYMFONY_XML = <<<'EOF'
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
<response><field>test</field></response>
|
|
|
|
|
|
|
|
EOF;
|
|
|
|
|
2021-05-14 18:57:35 +03:00
|
|
|
|
2021-05-14 18:52:00 +03:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @JMS\Type("string")
|
|
|
|
* @JMS\SerializedName("field")
|
|
|
|
*/
|
2021-05-15 18:57:28 +03:00
|
|
|
public $field = 'test';
|
2021-05-14 18:52:00 +03:00
|
|
|
}
|