uawdijnntqw1x1x1
IP : 216.73.216.28
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
commerce
/
src
/
.
/
records
/
LineItem.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\commerce\records; use craft\commerce\db\Table; use craft\db\ActiveRecord; use craft\records\Element; use yii\db\ActiveQueryInterface; /** * Line Item record. * * @property float $height * @property int $id * @property float $length * @property string $note * @property string $privateNote * @property mixed $options * @property string $description * @property string $optionsSignature * @property Order $order * @property int $orderId * @property int|null $lineItemStatusId * @property float $price * @property-read ActiveQueryInterface $purchasable * @property int $purchasableId * @property int $qty * @property float $saleAmount * @property float $salePrice * @property string $sku * @property-read ActiveQueryInterface $shippingCategory * @property int $shippingCategoryId * @property string $snapshot * @property-read TaxCategory $taxCategory * @property int $taxCategoryId * @property float $total * @property float $subtotal * @property float $weight * @property-read ActiveQueryInterface $lineItemStatus * @property float $width * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 2.0 */ class LineItem extends ActiveRecord { /** * @inheritdoc */ public static function tableName(): string { return Table::LINEITEMS; } public function getOrder(): ActiveQueryInterface { return $this->hasOne(Order::class, ['id' => 'orderId']); } public function getPurchasable(): ActiveQueryInterface { return $this->hasOne(Element::class, ['id' => 'purchasableId']); } public function getTaxCategory(): ActiveQueryInterface { return $this->hasOne(TaxCategory::class, ['id' => 'taxCategoryId']); } public function getShippingCategory(): ActiveQueryInterface { return $this->hasOne(ShippingCategory::class, ['id' => 'shippingCategoryId']); } public function getLineItemStatus(): ActiveQueryInterface { return $this->hasOne(LineItemStatus::class, ['id' => 'lineItemStatusId']); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/commerce/src/./records/LineItem.php