| @@ -10,10 +10,6 @@ | ||
| 10 | 10 | |
| 11 | 11 | namespace hiapi\commands; | 
| 12 | 12 | |
| 13 | -use hiqdev\yii\DataMapper\components\EntityManagerInterface; | |
| 14 | -use hiqdev\yii\DataMapper\query\Specification; | |
| 15 | -use hiqdev\yii\DataMapper\repositories\BaseRepository; | |
| 16 | - | |
| 17 | 13 | /** | 
| 18 | 14 | * Class GetInfoHandler | 
| 19 | 15 | * | 
| @@ -26,6 +26,9 @@ | ||
| 26 | 26 | return $this->getRepository($command)->findOneOrFail($this->buildSpecification($command)); | 
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | + /** | |
| 30 | + * @return Specification | |
| 31 | + */ | |
| 29 | 32 | protected function buildSpecification(EntityCommandInterface $command) | 
| 30 | 33 |      { | 
| 31 | 34 | return $this->createSpecification()->where(['id' => $command->id])->limit(1); | 
| @@ -78,6 +78,9 @@ | ||
| 78 | 78 | return $this->channel; | 
| 79 | 79 | } | 
| 80 | 80 | |
| 81 | + /** | |
| 82 | + * @param EventInterface $event | |
| 83 | + */ | |
| 81 | 84 | private function createMessage($event): AMQPMessage | 
| 82 | 85 |      { | 
| 83 | 86 |          if (!$event instanceof \JsonSerializable) { | 
| @@ -78,6 +78,9 @@ | ||
| 78 | 78 | return $this->channel; | 
| 79 | 79 | } | 
| 80 | 80 | |
| 81 | + /** | |
| 82 | + * @param EventInterface $event | |
| 83 | + */ | |
| 81 | 84 | private function createMessage($event): AMQPMessage | 
| 82 | 85 |      { | 
| 83 | 86 |          if (!$event instanceof \JsonSerializable) { | 
| @@ -21,7 +21,6 @@ | ||
| 21 | 21 | /** | 
| 22 | 22 | * FallbackToLegacyApiMiddleware constructor. | 
| 23 | 23 | * | 
| 24 | - * @param EndpointRepository $endpointRepository | |
| 25 | 24 | */ | 
| 26 | 25 | public function __construct(... $middlewares) | 
| 27 | 26 |      { | 
| @@ -45,7 +45,7 @@ discard block | ||
| 45 | 45 | } | 
| 46 | 46 | |
| 47 | 47 | /** | 
| 48 | - * @param SearchCommand $command | |
| 48 | + * @param EntityCommandInterface $command | |
| 49 | 49 | */ | 
| 50 | 50 | public function handle(EntityCommandInterface $command) | 
| 51 | 51 |      { | 
| @@ -60,7 +60,7 @@ discard block | ||
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | 62 | /** | 
| 63 | - * @param EntityCommandInterface|SearchCommand $command | |
| 63 | + * @param EntityCommandInterface $command | |
| 64 | 64 | * @return Specification | 
| 65 | 65 | */ | 
| 66 | 66 | protected function buildSpecification(EntityCommandInterface $command) | 
| @@ -84,7 +84,7 @@ discard block | ||
| 84 | 84 | } | 
| 85 | 85 | |
| 86 | 86 | /** | 
| 87 | - * @param SearchCommand $command | |
| 87 | + * @param EntityCommandInterface $command | |
| 88 | 88 | * @return BaseRepository | 
| 89 | 89 | */ | 
| 90 | 90 | protected function getRepository(EntityCommand $command) |