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

daycry / auth / 22527658769

28 Feb 2026 07:41PM UTC coverage: 63.267% (-3.6%) from 66.864%
22527658769

push

github

web-flow
Merge pull request #36 from daycry/development

Implement TOTP 2FA, JWT auth, device session tracking, and docs overhaul

465 of 1168 new or added lines in 52 files covered. (39.81%)

129 existing lines in 46 files now uncovered.

3064 of 4843 relevant lines covered (63.27%)

41.53 hits per line

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

0.0
/src/Models/EndpointModel.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of Daycry Auth.
7
 *
8
 * (c) Daycry <daycry9@proton.me>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace Daycry\Auth\Models;
15

16
use Daycry\Auth\Entities\Controller;
17
use Daycry\Auth\Entities\Endpoint;
18

19
class EndpointModel extends BaseModel
20
{
21
    protected $primaryKey     = 'id';
22
    protected $returnType     = Endpoint::class;
23
    protected $useSoftDeletes = false;
24
    protected $allowedFields  = [
25
        'controller_id',
26
        'method',
27
        'checked_at',
28
        'auth',
29
        'access_token',
30
        'log',
31
        'limit',
32
        'time',
33
        'scope',
34
    ];
35
    protected $useTimestamps = true;
36
    protected $createdField  = 'created_at';
37
    protected $updatedField  = 'updated_at';
38
    protected $deletedField  = 'deleted_at';
39

UNCOV
40
    protected function initialize(): void
×
41
    {
42
        parent::initialize();
×
43

44
        $this->table = $this->tables['endpoints'];
×
45
    }
46

47
    /**
48
     * Returns all Endpoints.
49
     *
50
     * @return list<Endpoint>
51
     */
UNCOV
52
    public function getEndpoints(Controller $controller): ?array
×
53
    {
54
        return $this->where('controller_id', $controller->id)->orderBy($this->primaryKey)->findAll();
×
55
    }
56
}
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