From 5232666f040f64c65c56b456441ad47a13cf741f Mon Sep 17 00:00:00 2001 From: Bene Date: Thu, 3 Mar 2016 12:24:40 +0100 Subject: [PATCH] Fix typehints --- src/LegacyDeserializerFactory.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/LegacyDeserializerFactory.php b/src/LegacyDeserializerFactory.php index e77521c..1938587 100644 --- a/src/LegacyDeserializerFactory.php +++ b/src/LegacyDeserializerFactory.php @@ -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; @@ -24,7 +25,14 @@ */ class LegacyDeserializerFactory { + /** + * @var Deserializer + */ private $dataValueDeserializer; + + /** + * @var EntityIdParser + */ private $idParser; public function __construct( Deserializer $dataValueDeserializer, EntityIdParser $idParser ) { @@ -33,7 +41,7 @@ public function __construct( Deserializer $dataValueDeserializer, EntityIdParser } /** - * @return Deserializer + * @return DispatchableDeserializer */ public function newEntityDeserializer() { return new LegacyEntityDeserializer( @@ -95,7 +103,7 @@ public function newClaimDeserializer() { } /** - * @return Deserializer + * @return DispatchableDeserializer */ public function newStatementDeserializer() { return new LegacyStatementDeserializer(