ResponseInterface
last analyzed

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
__construct() 0 1 ?
asXml() 0 1 ?
1
<?php namespace Scriptotek\Sru;
2
3
/**
4
 * Interface defining data objects that hold the information of an SRU response
5
 */
6
interface ResponseInterface
7
{
8
    /**
9
     * Create a new response
10
     *
11
     * @param string $text Raw XML response
12
     * @param Client $client SRU client reference (optional)
13
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
14
     */
15
    public function __construct($text = null, &$client = null);
16
17
    /**
18
     * Get the raw xml response
19
     *
20
     * @return string
21
     */
22
    public function asXml();
23
}
24