for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kerox\Messenger\Model\Message\Attachment\Template\Receipt;
class Adjustment implements \JsonSerializable
{
/**
* @var null|string
*/
protected $name;
* @var null|float
protected $amount;
* Adjustment constructor.
public function __construct()
//
}
* @param string $name
* @return Adjustment
public function setName(string $name): Adjustment
$this->name = $name;
return $this;
* @param float $amount
public function setAmount(float $amount): Adjustment
$this->amount = $amount;
* @return array
public function jsonSerialize(): array
$json = [
'name' => $this->name,
'amount' => $this->amount,
];
return array_filter($json);