123456789101112131415161718 |
- <?php
- namespace JMS\SerializerBundle\Tests\Fixtures;
- use JMS\SerializerBundle\Annotation\XmlRoot;
- use JMS\SerializerBundle\Annotation\Type;
- /** @XmlRoot("order") */
- class Order
- {
- /** @Type("JMS\SerializerBundle\Tests\Fixtures\Price") */
- private $cost;
- public function __construct(Price $price = null)
- {
- $this->cost = $price ?: new Price(5);
- }
- }
|