1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation\Type; 8use JMS\Serializer\Annotation\XmlRoot; 9use JMS\Serializer\Annotation\XmlValue; 10 11/** 12 * @XmlRoot("price") 13 */ 14class Price 15{ 16 /** 17 * @Type("float") 18 * @XmlValue 19 */ 20 private $price; 21 22 public function __construct($price) 23 { 24 $this->price = $price; 25 } 26} 27