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

Rebilly / rebilly-php / #2486

pending completion
#2486

push

php-coveralls

web-flow
Replace credentials hashes APIs with service credentials (#593)

* Replace credentials hashes APIs with service credentials

* Update changelog

* Fix test

23 of 23 new or added lines in 9 files covered. (100.0%)

3594 of 4328 relevant lines covered (83.04%)

12.93 hits per line

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

80.0
/src/Entities/WebhookCredential.php
1
<?php
2
/**
3
 * This source file is proprietary and part of Rebilly.
4
 *
5
 * (c) Rebilly SRL
6
 *     Rebilly Ltd.
7
 *     Rebilly Inc.
8
 *
9
 * @see https://www.rebilly.com
10
 */
11

12
namespace Rebilly\Entities;
13

14
use Rebilly\Rest\Entity;
15

16
/**
17
 * Class WebhookCredential.
18
 */
19
final class WebhookCredential extends Entity
20
{
21
    /**
22
     * @deprecated use {@see getId()} instead
23
     *
24
     * @return string
25
     */
26
    public function getHash()
27
    {
28
        return $this->getId();
×
29
    }
30

31
    /**
32
     * @return string
33
     */
34
    public function getHost()
35
    {
36
        return $this->getAttribute('host');
1✔
37
    }
38

39
    /**
40
     * @param string $value
41
     *
42
     * @return $this
43
     */
44
    public function setHost($value)
45
    {
46
        return $this->setAttribute('host', $value);
1✔
47
    }
48

49
    /**
50
     * @return array
51
     */
52
    public function getAuth()
53
    {
54
        return $this->getAttribute('auth');
1✔
55
    }
56

57
    /**
58
     * @param array $value
59
     *
60
     * @return $this
61
     */
62
    public function setAuth($value)
63
    {
64
        return $this->setAttribute('auth', $value);
1✔
65
    }
66
}
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