DeleteTransactionOperation
extends TransactionOperation
in package
The DeleteTransactionOperation class
Transaction operation to delete objects from DBMS
Tags
Table of Contents
Properties
- $class : PermanentEntity>
- The class of this operation
- $isValid : bool
- If this Operation is valid
- $object : PermanentEntity
- The object of this operation
- $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() : bool
- Run this operation
- runIfValid() : mixed
- Run this operation only if valid
- setSqlAdapter() : static
- Set the SQL Adapter
- setTransactionOperationSet() : static
- Set the TransactionOperationSet
- validate() : void
- 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
$object
The object of this operation
protected
PermanentEntity
$object
$sqlAdapter
The SQL Adapter
protected
AbstractSqlAdapter|null
$sqlAdapter
= null
$transactionOperationSet
The transaction set
protected
TransactionOperationSet|null
$transactionOperationSet
Methods
__construct()
Constructor
public
__construct(string $class, PermanentEntity $object) : mixed
Parameters
- $class : string
- $object : PermanentEntity
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
run() : bool
Return values
boolrunIfValid()
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
validate([array<string|int, mixed> &$errors = 0 ]) : void
Parameters
- $errors : array<string|int, mixed> = 0
Tags
setIsValid()
Set this operation validity
protected
setIsValid(bool $valid) : static
Parameters
- $valid : bool