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

datamweb / codeigniter-dea-rule / 11808698351

13 Nov 2024 01:14AM UTC coverage: 71.186%. Remained the same
11808698351

push

github

web-flow
chore(deps-dev): update rector/rector requirement from 1.2.8 to 1.2.10 (#38)

42 of 59 relevant lines covered (71.19%)

15.24 hits per line

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

75.0
/src/Models/LogsTempEmailModel.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of CodeIgniter-DEA-Rule.
7
 *
8
 * (c) 2023 Datamweb <pooya_parsa_dadashi@yahoo.com>
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 Datamweb\CodeIgniterDEARule\Models;
15

16
use CodeIgniter\Model;
17
use Datamweb\CodeIgniterDEARule\Config\DEARule;
18

19
class LogsTempEmailModel extends Model
20
{
21
    protected $primaryKey = 'id';
22
    protected $returnType = 'array';
23

24
    /**
25
     * @var list<string>
26
     */
27
    protected $allowedFields = [
28
        'email', 'try_url_string', 'ip_address', 'agent_string', 'device', 'platform', 'filter_by',
29
    ];
30

31
    // Dates
32
    protected $useTimestamps = true;
33
    protected $dateFormat    = 'datetime';
34
    protected $createdField  = 'created_at';
35
    protected $updatedField  = '';
36

37
    protected function initialize(): void
38
    {
39
        /** @var DEARule $config */
40
        $config = config('DEARule');
4✔
41

42
        if ($config->DBGroup !== null) {
4✔
43
            $this->DBGroup = $config->DBGroup;
×
44
        }
45

46
        $this->table = $config->tableName;
4✔
47
    }
48
}
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