for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @license MIT
* @copyright 2013 - 2016 Cross Solution <http://cross-solution.de>
*/
/** */
namespace Orders\Entity;
use \Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
* A product
* @ODM\EmbeddedDocument
* @author Mathias Gelhausen <[email protected]>
* @todo write test
class Product implements ProductInterface
{
* The name of the product.
* @ODM\String
* @var string
protected $name;
* The product number
protected $productNumber;
* The price
* @ODM\Field(type="float")
* @var float
protected $price = 0;
* The quantity
* @ODM\Field(type="int")
* @var int
protected $quantity = 1;
public function setName($name)
$this->name = $name;
return $this;
}
public function getName()
return $this->name;
public function setPrice($price)
$this->price = $price;
public function getPrice()
return $this->price;
public function setProductNumber($number)
$this->productNumber = $number;
public function getProductNumber()
return $this->productNumber;
public function setQuantity($quantity)
$this->quantity = $quantity;
public function getQuantity()
return $this->quantity;