@@ -39,16 +39,16 @@ abstract class Entity
3939 /** @var Row */
4040 protected $ row ;
4141
42- /** @var IMapper */
42+ /** @var IMapper|null */
4343 protected $ mapper ;
4444
45- /** @var IEntityFactory */
45+ /** @var IEntityFactory|null */
4646 protected $ entityFactory ;
4747
4848 /** @var EntityReflection[] */
4949 protected static $ reflections = [];
5050
51- /** @var EntityReflection */
51+ /** @var EntityReflection|null */
5252 private $ currentReflection ;
5353
5454
@@ -506,7 +506,7 @@ public function __sleep()
506506
507507
508508 /**
509- * @param $property
509+ * @param Property|string $property
510510 * @param array $filterArgs
511511 * @throws InvalidValueException
512512 * @throws InvalidStateException
@@ -858,7 +858,7 @@ protected function initDefaults()
858858 * @param Relationship\HasOne $relationship micro-optimalization
859859 * @param Filtering|null $filtering
860860 * @throws InvalidValueException
861- * @return Entity
861+ * @return Entity|null
862862 */
863863 private function getHasOneValue (Property $ property , Relationship \HasOne $ relationship , Filtering $ filtering = null )
864864 {
@@ -924,7 +924,7 @@ private function getHasManyValue(
924924 * @param Property $property
925925 * @param Relationship\BelongsToOne $relationship micro-optimalization
926926 * @param Filtering|null $filtering
927- * @return Entity
927+ * @return Entity|null
928928 * @throws InvalidValueException
929929 */
930930 private function getBelongsToOneValue (Property $ property , Relationship \BelongsToOne $ relationship , Filtering $ filtering = null )
0 commit comments