improve docblock

This commit is contained in:
Dennis Eichhorn 2022-02-12 20:10:28 +01:00
parent d5fef266f5
commit eb9298ec98

View File

@ -180,7 +180,9 @@ final class ReadMapper extends DataMapperAbstract
/** /**
* Execute mapper * Execute mapper
* *
* @param null|Builder $query Query to use instead of the internally generated query (carefuly, this doesn't merge with the internal query. If you want to merge it use ->query() instead) * @param null|Builder $query Query to use instead of the internally generated query
* Careful, this doesn't merge with the internal query.
* If you want to merge it use ->query() instead
* *
* @return object|array * @return object|array
* *
@ -228,7 +230,9 @@ final class ReadMapper extends DataMapperAbstract
/** /**
* Execute mapper * Execute mapper
* *
* @param null|Builder $query Query to use instead of the internally generated query (carefuly, this doesn't merge with the internal query. If you want to merge it use ->query() instead) * @param null|Builder $query Query to use instead of the internally generated query
* Careful, this doesn't merge with the internal query.
* If you want to merge it use ->query() instead
* *
* @return array * @return array
* *
@ -258,7 +262,9 @@ final class ReadMapper extends DataMapperAbstract
/** /**
* Execute mapper * Execute mapper
* *
* @param null|Builder $query Query to use instead of the internally generated query (carefuly, this doesn't merge with the internal query. If you want to merge it use ->query() instead) * @param null|Builder $query Query to use instead of the internally generated query
* Careful, this doesn't merge with the internal query.
* If you want to merge it use ->query() instead
* *
* @return array * @return array
* *
@ -541,8 +547,8 @@ final class ReadMapper extends DataMapperAbstract
$hasPath = true; $hasPath = true;
$path = \explode('/', \ltrim($def['internal'], '/')); $path = \explode('/', \ltrim($def['internal'], '/'));
$member = $path[0]; $member = $path[0];
$refProp = $refClass->getProperty($path[0]);
$refProp = $refClass->getProperty($path[0]);
if (!($isPublic = $refProp->isPublic())) { if (!($isPublic = $refProp->isPublic())) {
$refProp->setAccessible(true); $refProp->setAccessible(true);
} }