for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pronamic\WordPress\Pay\Gateways\IDealBasic;
use Pronamic\WordPress\Money\Money;
/**
* Title: iDEAL Basic item
* Description:
* Copyright: 2005-2021 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
* @version 2.0.0
* @since 1.0.0
*/
class Item {
* The number
* @var string
private $number;
* The description
private $description;
* The quantity
* @var int
private $quantity;
* The price
* @var Money
private $price;
* Constructs and initialize a iDEAL basic item
public function __construct( $number, $description, $quantity, $price ) {
$this->number = $number;
$this->description = $description;
$this->quantity = $quantity;
$this->price = $price;
}
* Get the number / identifier of this item
* @return string
public function get_number() {
return $this->number;
* Get the description of this item
public function get_description() {
return $this->description;
* Get the quantity of this item
* @return int
public function get_quantity() {
return $this->quantity;
* Get the price of this item
* @return Money
public function get_price() {
return $this->price;
* Get the amount
* @return float
public function get_amount() {
return $this->price->get_value() * $this->quantity;