1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Sync; |
4: | |
5: | use Salient\Contract\Core\MessageLevel as Level; |
6: | use Salient\Contract\Sync\ErrorType; |
7: | use Salient\Contract\Sync\SyncEntityInterface; |
8: | use Salient\Contract\Sync\SyncProviderInterface; |
9: | use Salient\Core\AbstractBuilder; |
10: | |
11: | /** |
12: | * A fluent SyncError factory |
13: | * |
14: | * @method $this errorType(ErrorType::* $value) Error type |
15: | * @method $this message(string $value) `sprintf()` format string that explains the error |
16: | * @method $this values(list<mixed[]|object|int|float|string|bool|null>|null $value) Values applied to the message format string. Default: `[$entityName]` |
17: | * @method $this level(Level::* $value) Error severity/message level |
18: | * @method $this entity(SyncEntityInterface|null $value) Entity associated with the error |
19: | * @method $this entityName(string|null $value) Display name of the entity associated with the error. Default: `$entity->getUri()` |
20: | * @method $this provider(SyncProviderInterface|null $value) Sync provider associated with the error. Default: `$entity->getProvider()` |
21: | * |
22: | * @extends AbstractBuilder<SyncError> |
23: | * |
24: | * @generated |
25: | */ |
26: | final class SyncErrorBuilder extends AbstractBuilder |
27: | { |
28: | /** |
29: | * @internal |
30: | */ |
31: | protected static function getService(): string |
32: | { |
33: | return SyncError::class; |
34: | } |
35: | } |
36: |