for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kerox\Messenger\Model\Common\Button\Payment;
class PriceList implements \JsonSerializable
{
/**
* @var string
*/
protected $label;
protected $amount;
* PriceList constructor.
*
* @param string $label
* @param string $amount
public function __construct(string $label, string $amount)
$this->label = $label;
$this->amount = $amount;
}
* @return array
public function jsonSerialize(): array
return [
'label' => $this->label,
'amount' => $this->amount,
];