1234567891011121314151617181920212223242526272829 |
- <?php
- namespace JMS\Serializer\Tests\Fixtures;
- use JMS\Serializer\Annotation\Type;
- class Comment
- {
- /**
- * @Type("JMS\Serializer\Tests\Fixtures\Author")
- */
- private $author;
- /**
- * @Type("string")
- */
- private $text;
- public function __construct(Author $author = null, $text)
- {
- $this->author = $author;
- $this->text = $text;
- }
- public function getAuthor()
- {
- return $this->author;
- }
- }
|