Issues (130)

src/Serializable.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace BitWasp\Bitcoin;
6
7
abstract class Serializable implements SerializableInterface
8
{
9
    /**
10
     * @return string
11
     */
12 113
    public function getHex(): string
13
    {
14 113
        return $this->getBuffer()->getHex();
15
    }
16
17
    /**
18
     * @return string
19
     */
20 5443
    public function getBinary(): string
21
    {
22 5443
        return $this->getBuffer()->getBinary();
23
    }
24
25
    /**
26
     * @return int
27
     */
28 40
    public function getInt()
29
    {
30 40
        return $this->getBuffer()->getInt();
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getBuffer()->getInt() also could return the type string which is incompatible with the documented return type integer.
Loading history...
31
    }
32
}
33