Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
APOLLO-4181 Initial abstract for payment types
Browse files Browse the repository at this point in the history
  • Loading branch information
brettminnie committed Oct 6, 2014
1 parent e5f4a0b commit 3010a17
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/Opg/Core/Model/Entity/Payment/PaymentType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php


namespace Opg\Core\Model\Entity\Payment;

use Doctrine\ORM\Mapping as ORM;
use Opg\Core\Model\Entity\CaseItem\CaseItem;
use JMS\Serializer\Annotation\Type;
use Doctrine\Common\Collections\ArrayCollection;

/**
* Class Payment
* @package Opg\Core\Model\Entity\Payment
*
* @ORM\Entity(repositoryClass="Application\Model\Repository\PaymentRepository")
* @ORM\Table(name = "payments")
* @ORM\ChangeTrackingPolicy("DEFERRED_EXPLICIT")
*
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="type", type="string")
* @ORM\DiscriminatorMap({
* "payment_cheque" = "Opg\Core\Model\Entity\Payment\Cheque",
* })
*/
abstract class PaymentType
{

/**
* @ORM\Column(
* type = "integer",
* options = {"unsigned": true}
* )
* @ORM\GeneratedValue(strategy = "AUTO")
* @ORM\Id
* @var integer
*/
protected $id;

/**
* @ORM\Column(type="string")
* @var string
*/
protected $paymentReference;

public function __construct()
{
}
}

0 comments on commit 3010a17

Please sign in to comment.