Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 5290b23

Browse files
committed
added subscription status
1 parent ce6ce41 commit 5290b23

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Entity/Subscription.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ class Subscription
3232
* @ORM\Column(type="string")
3333
*/
3434
protected $ref_id;
35+
/**
36+
* @ORM\Column(type="string")
37+
*/
38+
protected $status;
3539

3640
public function getId()
3741
{
@@ -78,6 +82,16 @@ public function getRefId()
7882
return $this->ref_id;
7983
}
8084

85+
public function setStatus($status)
86+
{
87+
$this->status = $status;
88+
}
89+
90+
public function getStatus()
91+
{
92+
return $this->status;
93+
}
94+
8195
/**
8296
* @ORM\PrePersist
8397
*/
@@ -95,4 +109,9 @@ public function onPreUpdate()
95109
$this->setUpdatedAt(new \DateTime());
96110
}
97111

112+
public function __toString()
113+
{
114+
return $this->getSubscriptionId();
115+
}
116+
98117
}

0 commit comments

Comments
 (0)