| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/GXMainComponents/Services/Core/Order/Entities/ |
Upload File : |
<?php
/* --------------------------------------------------------------
StoredOrderItem.php 2016-03-15
Gambio GmbH
http://www.gambio.de
Copyright (c) 2016 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
/**
* Class StoredOrderItem
*
* @category System
* @package Order
* @subpackage Entities
*/
class StoredOrderItem extends OrderItem implements StoredOrderItemInterface, AddonValueContainerInterface
{
/**
* ID
*
* @var int
*/
protected $id;
/**
* StoredOrderItem constructor
*
* @param IdType $orderItemId Order item ID.
*/
public function __construct(IdType $orderItemId)
{
$this->id = $orderItemId->asInt();
// Set empty download information order item collection.
$this->downloadInformation = MainFactory::create('OrderItemDownloadInformationCollection');
// Set empty gx customizer data collection
$this->gxCustomizerData = MainFactory::create('OrderItemGXCustomizerDataCollection');
// Set addon values collection.
// Note, that there is no setter method for assign the addonValues collection.
$addonValues = MainFactory::create('EditableKeyValueCollection', []);
$this->addonValues = $addonValues;
}
/**
* Returns ID of the stored order item ID.
*
* @return int Order item ID.
*/
public function getOrderItemId()
{
return $this->id;
}
/**
* Returns the addon value container ID.
*
* @return int Addon value container ID.
*/
public function getAddonValueContainerId()
{
return $this->getOrderItemId();
}
}