aboutsummaryrefslogtreecommitdiff
path: root/classes/Payment.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Payment.php')
-rw-r--r--classes/Payment.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/Payment.php b/classes/Payment.php
index 5bc08dc..4b8c12b 100644
--- a/classes/Payment.php
+++ b/classes/Payment.php
@@ -25,6 +25,7 @@
* An interface to the payment table in the database
*/
class Payment extends Model {
+ /** {@inheritDoc} */
public
$table = 'payment',
$fillable_columns = ['offerId', 'date', 'braintree_id'];
@@ -38,6 +39,11 @@ class Payment extends Model {
return new Offer($this->pdo, $this->offerId);
}
+ /**
+ * {@inheritDoc}
+ * @param $key {@inheritDoc}
+ * @param $value {@inheritDoc}
+ */
protected function accessor($key, $value) {
switch ($key) {
case 'date':
@@ -48,6 +54,11 @@ class Payment extends Model {
}
}
+ /**
+ * {@inheritDoc}
+ * @param $key {@inheritDoc}
+ * @param $value {@inheritDoc}
+ */
protected function mutator($key, $value) {
switch ($key) {
case 'date':