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

miaoxing / user / 12075953391

03 Nov 2024 04:27PM UTC coverage: 12.349%. Remained the same
12075953391

push

github

semantic-release-bot
chore(release): publish

See CHANGELOG.md for more details.

20 of 75 branches covered (26.67%)

102 of 826 relevant lines covered (12.35%)

1.81 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
    {
18
        $this->id = $id;
×
19
        parent::__construct();
×
20
    }
21

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

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