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
/
ShippingRule.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 yii\db\ActiveQueryInterface; /** * Shipping rule record. * * @property float $baseRate * @property string $description * @property bool $enabled * @property int $id * @property bool $isLite * @property ShippingMethod $method * @property int $methodId * @property string $orderConditionFormula * @property int $maxQty * @property float $maxRate * @property float $maxTotal * @property string $minMaxTotalType * @property float $maxWeight * @property int $minQty * @property float $minRate * @property float $minTotal * @property float $minWeight * @property string $name * @property float $percentageRate * @property float $perItemRate * @property int $priority * @property ActiveQueryInterface $shippingZone * @property int $shippingZoneId * @property float $weightRate * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 2.0 */ class ShippingRule extends ActiveRecord { public const TYPE_MIN_MAX_TOTAL_SALEPRICE = 'salePrice'; public const TYPE_MIN_MAX_TOTAL_SALEPRICE_WITH_DISCOUNTS = 'salePriceWithDiscounts'; /** * @inheritdoc */ public static function tableName(): string { return Table::SHIPPINGRULES; } /** * @inheritdoc */ public function rules(): array { return [ [['name'], 'required'], ]; } /** * @noinspection PhpUnused */ public function getShippingZone(): ActiveQueryInterface { return $this->hasOne(ShippingZone::class, ['id' => 'shippingZoneId']); } public function getMethod(): ActiveQueryInterface { return $this->hasOne(ShippingZone::class, ['id' => 'shippingMethodId']); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/commerce/src/./records/ShippingRule.php