X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fserializer%2FTests%2FFixtures%2FGroupDummy.php;fp=vendor%2Fsymfony%2Fserializer%2FTests%2FFixtures%2FGroupDummy.php;h=37bfa7eb3f07550709624bb43a4665e73d36044f;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/symfony/serializer/Tests/Fixtures/GroupDummy.php b/vendor/symfony/serializer/Tests/Fixtures/GroupDummy.php new file mode 100644 index 000000000..37bfa7eb3 --- /dev/null +++ b/vendor/symfony/serializer/Tests/Fixtures/GroupDummy.php @@ -0,0 +1,80 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Serializer\Tests\Fixtures; + +use Symfony\Component\Serializer\Annotation\Groups; + +/** + * @author Kévin Dunglas + */ +class GroupDummy extends GroupDummyParent implements GroupDummyInterface +{ + /** + * @Groups({"a"}) + */ + private $foo; + /** + * @Groups({"b", "c", "name_converter"}) + */ + protected $bar; + private $fooBar; + private $symfony; + + /** + * @Groups({"b"}) + */ + public function setBar($bar) + { + $this->bar = $bar; + } + + /** + * @Groups({"c"}) + */ + public function getBar() + { + return $this->bar; + } + + public function setFoo($foo) + { + $this->foo = $foo; + } + + public function getFoo() + { + return $this->foo; + } + + public function setFooBar($fooBar) + { + $this->fooBar = $fooBar; + } + + /** + * @Groups({"a", "b", "name_converter"}) + */ + public function isFooBar() + { + return $this->fooBar; + } + + public function setSymfony($symfony) + { + $this->symfony = $symfony; + } + + public function getSymfony() + { + return $this->symfony; + } +}