This repository has been archived by the owner on Apr 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APOLLO-4181 Initial abstract for payment types
- Loading branch information
1 parent
e5f4a0b
commit 3010a17
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
{ | ||
} | ||
} |