Class: SyncResult
Full name: Azera\Sync\SyncResult
Holds the result of synchronising a single model file against the database schema.
Public Properties
publicstring$filePath·publicstring$className·publicstring$tableName·publicarray$operations·publicbool$applied·publicstring|null$error·
Public methods
__construct() ·
public function __construct(string $filePath, string $className, string $tableName, array $operations, bool $applied, string|null $error = null): mixed
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$filePath |
string | - | Absolute path to the model file |
$className |
string | - | Fully-qualified class name |
$tableName |
string | - | Database table that was introspected |
$operations |
array | - | All diff operations calculated |
$applied |
bool | - | Whether the operations were written to disk |
$error |
string|null | null |
Error message, or null on success |
Return value
- Type:
mixed
hasChanges() ·
public function hasChanges(): bool
Return value
- Type:
bool
isSuccess() ·
public function isSuccess(): bool
Return value
- Type:
bool
addedProperties() ·
public function addedProperties(): array
Return value
- Type:
array
removedProperties() ·
public function removedProperties(): array
Return value
- Type:
array
typeChanges() ·
public function typeChanges(): array
Return value
- Type:
array
addedAccessors() ·
public function addedAccessors(): array
Return value
- Type:
array
summary() ·
public function summary(): string
Human-readable summary line.
Return value
- Type:
string