Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 971 Bytes

Payment.md

File metadata and controls

35 lines (24 loc) · 971 Bytes

Do you like this library? Leave a ★ or run composer global require symfony/thanks && composer thanks to say thank you to all libraries you use in your current project, this included!

Payment Complex Value Object

Represents a payment value.

Base Payment signature

// src/Payment/Payment.php

/**
 * @param string $values
 */
public function __construct($values)

How to use the object

See the working example: examples/Payment.php.

use SerendipityHQ\Component\ValueObjects\Payment\Payment;

$values = [
    Payment::METHOD => 'PayPal',
    Payment::STATUS => 'Paid'
];

$payment = new Payment($values);
dump($payment);

Do you like this library? Leave a ★ or run composer global require symfony/thanks && composer thanks to say thank you to all libraries you use in your current project, this included!