for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Order item.
*
* @author Pronamic <[email protected]>
* @copyright 2005-2018 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\OmniKassa2
*/
namespace Pronamic\WordPress\Pay\Gateways\OmniKassa2;
* @author Reüel van der Steege
* @version 2.0.3
* @since 2.0.3
class OrderItem {
* Item id.
* @var string
private $id;
* Item name (required).
private $name;
* Description.
private $description;
* Quantity (required).
* @var int
private $quantity;
* Amount (required).
* @var Money
private $amount;
* Tax.
private $tax;
* Category; physical or digital (required).
private $category;
* VAT category.
private $vat_category;
* Construct order result.
* @param string $name Name.
* @param int $quantity Quantity.
* @param Money $amount Amount.
* @param string $category Category.
public function __construct( $name, $quantity, Money $amount, $category ) {
$this->name = $name;
$this->quantity = $quantity;
$this->amount = $amount;
$this->category = $category;
}
* Get item ID.
* @return string
public function get_id() {
return $this->id;
* Get item name.
public function get_name() {
return $this->name;
* Get item description.
* @return int|string
public function get_description() {
return $this->description;
* Get quantity.
* @return int
public function get_quantity() {
return $this->quantity;
* Get amount.
* @return Money
public function get_amount() {
return $this->amount;
* Get tax.
public function get_tax() {
return $this->tax;
* Get category.
public function get_category() {
return $this->category;
* Get VAT category.
public function get_vat_category() {
return $this->vat_category;