TransactionOperation
in package
AbstractYes
Table of Contents
Properties
- $class : PermanentEntity>
- The class of this operation
- $isValid : bool
- If this Operation is valid
- $sqlAdapter : AbstractSqlAdapter|null
- The SQL Adapter
- $transactionOperationSet : TransactionOperationSet|null
- The transaction set
Methods
- __construct() : mixed
- Constructor
- getSqlAdapter() : AbstractSqlAdapter|null
- Get the SQL Adapter
- getTransactionOperationSet() : TransactionOperationSet
- Get the TransactionOperationSet
- isValid() : bool
- If this operation is valid
- run() : mixed
- Run this operation
- runIfValid() : mixed
- Run this operation only if valid
- setSqlAdapter() : static
- Set the SQL Adapter
- setTransactionOperationSet() : static
- Set the TransactionOperationSet
- validate() : mixed
- Validate this operation
- setIsValid() : static
- Set this operation validity
Properties
$class
The class of this operation
protected
PermanentEntity>
$class
$isValid
If this Operation is valid
protected
bool
$isValid
= false
$sqlAdapter
The SQL Adapter
protected
AbstractSqlAdapter|null
$sqlAdapter
= null
$transactionOperationSet
The transaction set
protected
TransactionOperationSet|null
$transactionOperationSet
Methods
__construct()
Constructor
public
__construct(string $class) : mixed
Parameters
- $class : string
getSqlAdapter()
Get the SQL Adapter
public
getSqlAdapter() : AbstractSqlAdapter|null
Return values
AbstractSqlAdapter|nullgetTransactionOperationSet()
Get the TransactionOperationSet
public
getTransactionOperationSet() : TransactionOperationSet
Return values
TransactionOperationSetisValid()
If this operation is valid
public
isValid() : bool
Return values
boolrun()
Run this operation
public
abstract run() : mixed
runIfValid()
Run this operation only if valid
public
runIfValid() : mixed
setSqlAdapter()
Set the SQL Adapter
public
setSqlAdapter(AbstractSqlAdapter $sqlAdapter) : static
Parameters
- $sqlAdapter : AbstractSqlAdapter
Return values
staticsetTransactionOperationSet()
Set the TransactionOperationSet
public
setTransactionOperationSet(TransactionOperationSet $transactionOperationSet) : static
Parameters
- $transactionOperationSet : TransactionOperationSet
Return values
staticvalidate()
Validate this operation
public
abstract validate([int &$errors = 0 ]) : mixed
Parameters
- $errors : int = 0
setIsValid()
Set this operation validity
protected
setIsValid(bool $valid) : static
Parameters
- $valid : bool