Documentation

No matching pages.

API

Config

Facade

Lifecycle

Class: SyncOptions

Full name: Azera\Sync\SyncOptions

Configuration options that control the behavior of the model-sync process.

Public Properties

  • public bool $generateAccessors ·
  • public string $fieldVisibility ·
  • public bool $deprecate ·

Public methods

__construct() ·

public function __construct(bool $generateAccessors = false, string $fieldVisibility = 'public', bool $deprecate = true): mixed

Parameters

Name Type Default Description
$generateAccessors bool false When true a camelized getter/setter method pair is
generated for every newly-added property.
$fieldVisibility string 'public' Visibility modifier applied to generated properties:
'public', 'protected', or 'private'.
$deprecate bool true When false, properties whose columns have been removed
are left untouched instead of being tagged @deprecated.

Return value

  • Type: mixed

Back to the Index