Storm\Core\Object\IProcedure::GetEntityType PHP Метод

GetEntityType() публичный Метод

public GetEntityType ( ) : string
Результат string
    public function GetEntityType();

Usage Example

Пример #1
0
 /**
  * Adds a procedure to the execution queue. 
  * If AutoSave is enabled, the action will be commited.
  * 
  * @param Fluent\ProcedureBuilder $ProcedureBuilder The procedure to execute
  * @return void
  */
 public function ExecuteProcedure(Object\IProcedure $Procedure)
 {
     if ($Procedure->GetEntityType() !== $this->EntityType) {
         throw new Object\TypeMismatchException('The supplied procedure is of type %s, expecting: %s', $Procedure->GetEntityType(), $this->EntityType);
     }
     $this->ExecutionQueue[] = $Procedure;
     $this->AutoSave();
 }
All Usage Examples Of Storm\Core\Object\IProcedure::GetEntityType