File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/jms/serializer/tests/Fixtures/GetSetObject.php
<?php
namespace JMS\Serializer\Tests\Fixtures;
use JMS\Serializer\Annotation\AccessType;
use JMS\Serializer\Annotation\Exclude;
use JMS\Serializer\Annotation\ReadOnly;
use JMS\Serializer\Annotation\Type;
/** @AccessType("public_method") */
class GetSetObject
{
/** @AccessType("property") @Type("integer") */
private $id = 1;
/** @Type("string") */
private $name = 'Foo';
/**
* @ReadOnly
*/
private $readOnlyProperty = 42;
/**
* This property should be exlcluded
* @Exclude()
*/
private $excludedProperty;
public function getId()
{
throw new \RuntimeException('This should not be called.');
}
public function getName()
{
return 'Johannes';
}
public function setName($name)
{
$this->name = $name;
}
public function getReadOnlyProperty()
{
return $this->readOnlyProperty;
}
}