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

miaoxing / admin / 11024665807

25 Sep 2024 01:28AM UTC coverage: 20.827%. Remained the same
11024665807

push

github

twinh
feat(admin): `AdminPage` 值为空时使用默认值

20 of 80 branches covered (25.0%)

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

146 of 701 relevant lines covered (20.83%)

2.51 hits per line

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

0.0
/src/Service/AdminPage.php
1
<?php
2

3
namespace Miaoxing\Admin\Service;
4

5
use Miaoxing\Plugin\BaseService;
6

7
class AdminPage extends BaseService
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $title = '喵星商城';
13

14
    /**
15
     * @var string
16
     */
17
    protected $copyright = 'Miaoxing ©2024';
18

19
    /**
20
     * @var string
21
     */
22
    protected $logo = 'https://u.miaoxingyun.com/logo.svg';
23

24
    /**
25
     * 入口页(如登录、注册页)背景图
26
     *
27
     * @var string
28
     */
29
    protected $entryBg = '';
30

31
    /**
32
     * 背景图片,可用于登录等简单页面
33
     *
34
     * @var string
35
     * @experimental 只有特定页面有背景,可能要改为其他更合适的名称
36
     */
37
    protected $bg = '';
38

39
    /**
40
     * @return string
41
     */
42
    public function getTitle(): string
43
    {
NEW
44
        return $this->title ?: get_class_vars(__CLASS__)['title'];
×
45
    }
46

47
    /**
48
     * @return string
49
     */
50
    public function getCopyright(): string
51
    {
NEW
52
        return $this->copyright ?: get_class_vars(__CLASS__)['copyright'];
×
53
    }
54

55
    /**
56
     * @return string
57
     */
58
    public function getLogo(): string
59
    {
NEW
60
        return $this->logo ?: get_class_vars(__CLASS__)['logo'];
×
61
    }
62

63
    /**
64
     * @return string
65
     */
66
    public function getEntryBg(): string
67
    {
NEW
68
        return $this->entryBg ?: get_class_vars(__CLASS__)['entryBg'];
×
69
    }
70

71
    /**
72
     * @return string
73
     * @experimental
74
     */
75
    public function getBg(): string
76
    {
NEW
77
        return $this->bg ?: get_class_vars(__CLASS__)['bg'];
×
78
    }
79
}
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