Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
41 | public function getFromGuid( $guid ) { |
||
42 | $params = [ |
||
43 | 'claim' => $guid, |
||
44 | ]; |
||
45 | |||
46 | $result = $this->api->getRequest( new SimpleRequest( 'wbgetclaims', $params ) ); |
||
47 | |||
48 | $statementSerialization = array_shift( array_shift( $result['claims'] ) ); |
||
|
|||
49 | |||
50 | return $this->statementDeserializer->deserialize( $statementSerialization ); |
||
51 | } |
||
52 | |||
54 |