for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace VasilDakov\Speedy\Model;
use DateTime;
use JMS\Serializer\Annotation as Serializer;
use VasilDakov\Speedy\ToArray;
/**
* Class CODPayment
*
* @Serializer\AccessType("public_method")
* @author Vasil Dakov <[email protected]>
* @author Valentin Valkanov <[email protected]>
* @copyright
* @version 1.0
* @psalm-suppress MissingConstructor
*/
class CODPayment
{
use ToArray;
* @var DateTime
* @Serializer\Type("DateTime<'Y-m-d\TH:i:sP'>")
private DateTime $date;
* @var float
* @Serializer\Type("float")
private float $totalPayedOutAmount;
* @return DateTime
public function getDate(): DateTime
return $this->date;
}
* @param DateTime $date
public function setDate(DateTime $date): void
$this->date = $date;
* @return float
public function getTotalPayedOutAmount(): float
return $this->totalPayedOutAmount;
* @param float $totalPayedOutAmount
public function setTotalPayedOutAmount(float $totalPayedOutAmount): void
$this->totalPayedOutAmount = $totalPayedOutAmount;