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

miaoxing / user / 8775820409

02 Apr 2024 02:09PM UTC coverage: 15.297% (-0.02%) from 15.319%
8775820409

push

github

twinh
refactor(user): 更新队列任务类

21 of 80 branches covered (26.25%)

0 of 4 new or added lines in 1 file covered. (0.0%)

108 of 706 relevant lines covered (15.3%)

1.52 hits per line

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

0.0
/src/Job/UserCreate.php
1
<?php
2

3
namespace Miaoxing\User\Job;
4

5
use Miaoxing\Plugin\Queue\BaseJob;
6
use Miaoxing\User\Service\UserModel;
7
use Wei\Event;
8

9
class UserCreate extends BaseJob
10
{
11
    protected $id;
12

13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function __construct(string $id)
17
    {
NEW
18
        $this->id = $id;
×
NEW
19
        parent::__construct();
×
20
    }
21

22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function __invoke(): void
26
    {
NEW
27
        $user = UserModel::findOneById($this->id);
×
28

NEW
29
        Event::trigger('asyncUserCreate', [$user]);
×
30
    }
31
}
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