uawdijnntqw1x1x1
IP : 216.73.216.84
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
/
models
/
LiteTaxSettings.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\commerce\models; use Craft; use craft\commerce\base\Model; /** * Class Lite Tax Settings * * @property-read string $taxRateAsPercent * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 2.0 * */ class LiteTaxSettings extends Model { /** * @var float Tax rate */ public float $taxRate; /** * @var string Tax name */ public string $taxName; /** * @var bool Tax include */ public bool $taxInclude; /** * @return array */ public function safeAttributes(): array { return [ 'taxRate', 'taxName', 'taxInclude', ]; } public function getTaxRateAsPercent(): string { return Craft::$app->getFormatter()->asPercent($this->taxRate); } /** * @return array[] */ protected function defineRules(): array { return [[['taxRate', 'taxName'], 'required']]; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/commerce/src/models/LiteTaxSettings.php