Skip to content

Commit 9a37c6b

Browse files
committed
Update doc blocks
1 parent 4691fae commit 9a37c6b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/LightQL/Sessions/Facade.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
namespace ElementaryFramework\LightQL\Sessions;
3434

3535
use ElementaryFramework\Annotations\Annotations;
36+
use ElementaryFramework\LightQL\Annotations\NamedQueryAnnotation;
3637
use ElementaryFramework\LightQL\Entities\Entity;
3738
use ElementaryFramework\LightQL\Entities\EntityManager;
3839
use ElementaryFramework\LightQL\Entities\IEntity;
@@ -104,7 +105,7 @@ public function __construct($class)
104105
*
105106
* @throws FacadeException
106107
* @throws \ElementaryFramework\Annotations\Exceptions\AnnotationException
107-
* @throws \ElementaryFramework\LightQL\Exceptions\LightQLException
108+
* @throws \ElementaryFramework\LightQL\Exceptions\EntityException
108109
*/
109110
public function create(Entity &$entity)
110111
{
@@ -122,7 +123,7 @@ public function create(Entity &$entity)
122123
*
123124
* @throws FacadeException
124125
* @throws \ElementaryFramework\Annotations\Exceptions\AnnotationException
125-
* @throws \ElementaryFramework\LightQL\Exceptions\LightQLException
126+
* @throws \ElementaryFramework\LightQL\Exceptions\EntityException
126127
*/
127128
public function edit(Entity &$entity)
128129
{
@@ -140,7 +141,7 @@ public function edit(Entity &$entity)
140141
*
141142
* @throws FacadeException
142143
* @throws \ElementaryFramework\Annotations\Exceptions\AnnotationException
143-
* @throws \ElementaryFramework\LightQL\Exceptions\LightQLException
144+
* @throws \ElementaryFramework\LightQL\Exceptions\EntityException
144145
*/
145146
public function delete(Entity &$entity)
146147
{
@@ -270,6 +271,7 @@ public function getNamedQuery(string $name): Query
270271
$namedQueries = Annotations::ofClass($this->getEntityClassName(), "@namedQuery");
271272
$query = null;
272273

274+
/** @var NamedQueryAnnotation $namedQuery */
273275
foreach ($namedQueries as $namedQuery) {
274276
if ($namedQuery->name === $name) {
275277
$query = $namedQuery->query;
@@ -422,6 +424,7 @@ private function _parseRawEntites($rawEntities, $annotations): array
422424
$entities = array();
423425

424426
foreach ($rawEntities as $rawEntity) {
427+
/** @var Entity $entity */
425428
$entity = $this->_class->newInstance($rawEntity);
426429

427430
if ($annotations[0]->fetchMode === Entity::FETCH_EAGER) {

0 commit comments

Comments
 (0)