@@ -258,6 +258,9 @@ |
||
| 258 | 258 | } |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | + /** |
|
| 262 | + * @param \Closure $callback |
|
| 263 | + */ |
|
| 261 | 264 | private function generateStates($changes, $callback) |
| 262 | 265 | { |
| 263 | 266 | $slices = []; |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use BadMethodCallException; |
| 6 | 6 | use Exception; |
| 7 | -use Tarantool\Mapper\Plugin\Annotation; |
|
| 8 | 7 | |
| 9 | 8 | class Entity |
| 10 | 9 | { |
@@ -250,6 +250,9 @@ discard block |
||
| 250 | 250 | return $this->getData($entity, $id, $date, '_temporal_override_aggregate'); |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | + /** |
|
| 254 | + * @param string $space |
|
| 255 | + */ |
|
| 253 | 256 | private function getData($entity, $id, $date, $space) |
| 254 | 257 | { |
| 255 | 258 | $entity = $this->entityNameToId($entity); |
@@ -468,6 +471,9 @@ discard block |
||
| 468 | 471 | return $this; |
| 469 | 472 | } |
| 470 | 473 | |
| 474 | + /** |
|
| 475 | + * @return string |
|
| 476 | + */ |
|
| 471 | 477 | private function getTimestamp($string) |
| 472 | 478 | { |
| 473 | 479 | if (Carbon::hasTestNow() || !array_key_exists($string, $this->timestamps)) { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | namespace Tarantool\Mapper\Plugin; |
| 6 | 6 | |
| 7 | 7 | use Exception; |
| 8 | -use Tarantool\Client\Schema\Operations; |
|
| 9 | 8 | use Tarantool\Mapper\Entity; |
| 10 | 9 | use Tarantool\Mapper\Plugin; |
| 11 | 10 | use Tarantool\Mapper\Procedure\CreateSequence; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Closure; |
| 8 | 8 | use Exception; |
| 9 | 9 | use Tarantool\Client\Schema\Criteria; |
| 10 | -use Tarantool\Client\Schema\Space as ClientSpace; |
|
| 11 | 10 | |
| 12 | 11 | class Schema |
| 13 | 12 | { |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | throw new Exception("Invalid type $type"); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @return string |
|
| 94 | + */ |
|
| 92 | 95 | public function formatValue(string $type, $value) |
| 93 | 96 | { |
| 94 | 97 | if ($value === null) { |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | return null; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $space |
|
| 38 | + */ |
|
| 36 | 39 | public function mapEntity($space, $class): self |
| 37 | 40 | { |
| 38 | 41 | $this->validateSpace($space); |
@@ -325,6 +325,9 @@ |
||
| 325 | 325 | return $this->formatNamesHash[$name]; |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | + /** |
|
| 329 | + * @return string |
|
| 330 | + */ |
|
| 328 | 331 | public function getReference(string $name): ?string |
| 329 | 332 | { |
| 330 | 333 | return $this->isReference($name) ? $this->formatReferences[$name] : null; |