• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / product / 13100246700

02 Feb 2025 03:42PM UTC coverage: 71.116%. Remained the same
13100246700

push

github

semantic-release-bot
chore(release): publish

See CHANGELOG.md for more details.

20 of 31 branches covered (64.52%)

357 of 502 relevant lines covered (71.12%)

25.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Service/SpecValueModel.php
1
<?php
2

3
namespace Miaoxing\Product\Service;
4

5
use Miaoxing\Plugin\BaseModel;
6
use Miaoxing\Plugin\Model\HasAppIdTrait;
7
use Miaoxing\Plugin\Model\ModelTrait;
8
use Miaoxing\Plugin\Model\SnowflakeTrait;
9
use Wei\Model\SoftDeleteTrait;
10

11
/**
12
 * 规格值
13
 *
14
 * @property string|null $id 编号
15
 * @property string $appId 应用编号
16
 * @property string $specId 规格编号
17
 * @property string $name 名称
18
 * @property int $sort 顺序,从大到小排列
19
 * @property string|null $createdAt
20
 * @property string|null $updatedAt
21
 * @property string $createdBy
22
 * @property string $updatedBy
23
 * @property string|null $deletedAt
24
 * @property string $deletedBy
25
 * @property $this $spec 规格
26
 */
27
class SpecValueModel extends BaseModel
28
{
29
    use HasAppIdTrait;
30
    use ModelTrait;
31
    use SnowflakeTrait;
32
    use SoftDeleteTrait;
33

34
    /**
35
     * 规格
36
     *
37
     * @return $this
38
     */
39
    public function spec(): SpecModel
40
    {
41
        return $this->belongsTo(SpecModel::class);
×
42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc