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

The-oGlow / ezlogging / 17529165661

07 Sep 2025 01:25PM UTC coverage: 73.543% (-1.3%) from 74.886%
17529165661

push

github

ollily
#3: Traits added

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

164 of 223 relevant lines covered (73.54%)

6.44 hits per line

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

0.0
/src/Tools/String/ToStringTrait.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of ezlogging
7
 *
8
 * (c) 2025 Oliver Glowa, coding.glowa.com
9
 *
10
 * This source file is subject to the Apache-2.0 license that is bundled
11
 * with this source code in the file LICENSE.
12
 */
13

14
namespace ollily\Tools;
15

16
use oglowa\tools\Yacorapi\Helper\ImplodeTrait;
17

18
trait ToStringTrait
19
{
20
    use ImplodeTrait;
21

22
    abstract function __toStringValues(): array;
23

24
    /**
25
     * @inheritdoc
26
     */
27
    public function __toString()
×
28
    {
29
        return sprintf('[{%s}:{%s}]', get_class($this), $this->arrayRecImplode(',', $this->__toStringValues(), true));
×
30
    }
31

32
    /**
33
     * @inheritdoc
34
     */
NEW
35
    public function __wakeup()
×
36
    {
NEW
37
        throw new \BadMethodCallException("Cannot unserialize singleton");
×
38
    }
39

40
    /**
41
     * @inheritdoc
42
     */
NEW
43
    private function __clone()
×
44
    {
NEW
45
    }
×
46
}
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