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

FastyBird / simple-auth / 7822099561

07 Feb 2024 10:39PM UTC coverage: 74.633% (-3.5%) from 78.119%
7822099561

push

github

akadlec
Use native enum

3 of 7 new or added lines in 3 files covered. (42.86%)

29 existing lines in 5 files now uncovered.

356 of 477 relevant lines covered (74.63%)

4.91 hits per line

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

0.0
/src/Entities/TOwner.php
1
<?php declare(strict_types = 1);
2

3
/**
4
 * TOwner.php
5
 *
6
 * @license        More in LICENSE.md
7
 * @copyright      https://www.fastybird.com
8
 * @author         Adam Kadlec <adam.kadlec@fastybird.com>
9
 * @package        FastyBird:SimpleAuth!
10
 * @subpackage     Entities
11
 * @since          0.1.0
12
 *
13
 * @date           15.07.20
14
 */
15

16
namespace FastyBird\SimpleAuth\Entities;
17

18
use FastyBird\SimpleAuth\Mapping\Attribute as FB;
19

20
/**
21
 * Entity owner entity
22
 *
23
 * @package        FastyBird:SimpleAuth!
24
 * @subpackage     Entities
25
 *
26
 * @author         Adam Kadlec <adam.kadlec@fastybird.com>
27
 */
28
trait TOwner
29
{
30

31
        #[FB\Owner(on: 'create')]
32
        protected mixed $owner = null;
33

34
        public function setOwnerId(string|null $ownerId): void
35
        {
36
                $this->owner = $ownerId;
×
37
        }
38

39
        public function getOwnerId(): string|null
40
        {
UNCOV
41
                return $this->owner;
×
42
        }
43

44
}
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

© 2026 Coveralls, Inc