for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Mapado\RestClientSdk\Tests\Model\JsonLd;
use Mapado\RestClientSdk\Mapping\Annotations as Rest;
/**
* Class Product
*
* @author Julien Deniau <[email protected]>
* @Rest\Entity(key="product", repository="Mapado\RestClientSdk\Test\Model\ModelRepository")
*/
class Product
{
* id
* @var int
* @Rest\Id
* @Rest\Attribute(name="id", type="integer")
private $id;
* value
* @var string
* @Rest\Attribute(name="product_value", type="string")
private $value;
* currency
* @Rest\Attribute(name="currency", type="string")
private $currency;
* Getter for id
* @return int
public function getId()
return $this->id;
}
* Setter for id
* @param int $id
* @return Product
public function setId($id)
$this->id = $id;
return $this;
* Getter for value
* @return string
public function getValue()
return $this->value;
* Setter for value
* @param string $value
public function setValue($value)
$this->value = $value;
* Getter for currency
public function getCurrency()
return $this->currency;
* Setter for currency
* @param string $currency
public function setCurrency($currency)
$this->currency = $currency;