Skip to content

Commit

Permalink
Merge pull request #102 from wmde/typehints
Browse files Browse the repository at this point in the history
Fix typehints
  • Loading branch information
JonasKress committed Mar 3, 2016
2 parents 2b1f4f4 + 5232666 commit 6221e96
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/LegacyDeserializerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Wikibase\InternalSerialization;

use Deserializers\Deserializer;
use Deserializers\DispatchableDeserializer;
use Wikibase\DataModel\Entity\EntityIdParser;
use Wikibase\InternalSerialization\Deserializers\LegacyEntityDeserializer;
use Wikibase\InternalSerialization\Deserializers\LegacyEntityIdDeserializer;
Expand All @@ -24,7 +25,14 @@
*/
class LegacyDeserializerFactory {

/**
* @var Deserializer
*/
private $dataValueDeserializer;

/**
* @var EntityIdParser
*/
private $idParser;

public function __construct( Deserializer $dataValueDeserializer, EntityIdParser $idParser ) {
Expand All @@ -33,7 +41,7 @@ public function __construct( Deserializer $dataValueDeserializer, EntityIdParser
}

/**
* @return Deserializer
* @return DispatchableDeserializer
*/
public function newEntityDeserializer() {
return new LegacyEntityDeserializer(
Expand Down Expand Up @@ -95,7 +103,7 @@ public function newClaimDeserializer() {
}

/**
* @return Deserializer
* @return DispatchableDeserializer
*/
public function newStatementDeserializer() {
return new LegacyStatementDeserializer(
Expand Down

0 comments on commit 6221e96

Please sign in to comment.