Issues (21)

src/Asn1/Element.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Ocsp\Asn1;
4
5
/**
6
 * Interface that all the ASN.1 elements must implement.
7
 */
8
interface Element
9
{
10
    /**
11
     * Class: UNIVERSAL.
12
     *
13
     * @var string
14
     */
15
    const CLASS_UNIVERSAL = 'UNIVERSAL';
16
17
    /**
18
     * Class: APPLICATION class.
19
     *
20
     * @var string
21
     */
22
    const CLASS_APPLICATION = 'APPLICATION';
23
24
    /**
25
     * Class: PRIVATE.
26
     *
27
     * @var string
28
     */
29
    const CLASS_PRIVATE = 'PRIVATE';
30
31
    /**
32
     * Class: context-specific class.
33
     *
34
     * @var string
35
     */
36
    const CLASS_CONTEXTSPECIFIC = '';
37
38
    /**
39
     * Get the type ID.
40
     *
41
     * @return int|string|\phpseclib\Math\BigInteger|\phpseclib3\Math\BigInteger
0 ignored issues
show
The type phpseclib\Math\BigInteger was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
42
     */
43
    public function getTypeID();
44
45
    /**
46
     * Get the class (the value of one of the Element::CLASS_... constants).
47
     *
48
     * @return string
49
     */
50
    public function getClass();
51
52
    /**
53
     * Is this a constructed element (that is, does the element contain other elements)?
54
     *
55
     * @return bool
56
     */
57
    public function isConstructed();
58
59
    /**
60
     * Get the encoded value of the element.
61
     *
62
     * @param \Ocsp\Asn1\Encoder $encoder
63
     *
64
     * @throws \Ocsp\Exception\Asn1EncodingException
65
     *
66
     * @return string
67
     */
68
    public function getEncodedValue(Encoder $encoder);
69
}
70