IAttribute
last analyzed

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
toXml() 0 1 ?
createFromXml() 0 1 ?
1
<?php
2
3
namespace Bpost\BpostApiClient\Common;
4
5
interface IAttribute
6
{
7
    /**
8
     * @param \DOMDocument $document
9
     * @param string       $prefix
0 ignored issues
show
Documentation introduced by
Should the type for parameter $prefix not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
10
     * @param string       $type
0 ignored issues
show
Documentation introduced by
Should the type for parameter $type not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
11
     * @return \DOMElement
12
     */
13
    function toXml(\DOMDocument $document, $prefix = null, $type = null);
14
15
    /**
16
     * @param \SimpleXMLElement $xml
17
     * @return IAttribute
18
     */
19
    static function createFromXml(\SimpleXMLElement $xml);
20
}
21