for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\DandomainAltapayBundle\Entity;
use Doctrine\ORM\Mapping AS ORM;
/**
* @ORM\MappedSuperclass
*/
abstract class OrderLine implements OrderLineInterface
{
* @var mixed
protected $id;
* @var string
*
* @ORM\Column(type="string")
protected $productNumber;
protected $name;
* @var int
* @ORM\Column(type="integer")
protected $quantity;
* The price excl vat
* @var float
* @ORM\Column(type="decimal", scale=2, precision=10)
protected $price;
protected $vat;
* @var PaymentInterface
protected $payment;
* @inheritdoc
public function getId()
return $this->id;
}
public function getProductNumber() : string
return $this->productNumber;
public function setProductNumber(string $productNumber) : OrderLineInterface
$this->productNumber = $productNumber;
return $this;
public function getName() : string
return $this->name;
public function setName(string $name) : OrderLineInterface
$this->name = $name;
public function getQuantity() : int
return $this->quantity;
public function setQuantity(int $quantity) : OrderLineInterface
$this->quantity = $quantity;
public function getPrice() : float
return $this->price;
public function setPrice(float $price) : OrderLineInterface
$this->price = $price;
public function getVat() : int
return $this->vat;
public function setVat(int $vat) : OrderLineInterface
$this->vat = $vat;
public function getPayment(): PaymentInterface
return $this->payment;
public function setPayment(PaymentInterface $payment): OrderLineInterface
$this->payment = $payment;