pimax\Messages\MessageReceiptElement::__construct PHP Method

__construct() public method

MessageReceiptElement constructor.
public __construct ( string $title, string $subtitle, string $image_url = '', integer $quantity = 1, integer $price, string $currency = "USD" )
$title string
$subtitle string
$image_url string
$quantity integer
$price integer
$currency string
    public function __construct($title, $subtitle, $image_url = '', $quantity = 1, $price = 0, $currency = "USD")
    {
        $this->title = $title;
        $this->subtitle = $subtitle;
        $this->image_url = $image_url;
        $this->quantity = $quantity;
        $this->price = $price;
        $this->currency = $currency;
    }
MessageReceiptElement