Skip to content

Commit

Permalink
phalcon#13226 cleanup cherry picking mistake
Browse files Browse the repository at this point in the history
 - adds missing types
  • Loading branch information
chilimatic committed Dec 18, 2017
1 parent aacb6a6 commit e544eb1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions phalcon/mvc/model/transactioninterface.zep
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ interface TransactionInterface
*
* @return boolean
*/
public function commit();
public function commit() -> boolean;

/**
* Rollbacks the transaction
Expand All @@ -55,7 +55,7 @@ interface TransactionInterface
* @param Phalcon\Mvc\ModelInterface rollbackRecord
* @return boolean
*/
public function rollback(rollbackMessage = null, rollbackRecord = null);
public function rollback(string rollbackMessage = null, <ModelInterface> rollbackRecord = null);

/**
* Returns connection related to transaction
Expand All @@ -69,35 +69,35 @@ interface TransactionInterface
*
* @param boolean isNew
*/
public function setIsNewTransaction(isNew);
public function setIsNewTransaction(boolean isNew);

/**
* Sets flag to rollback on abort the HTTP connection
*
* @param boolean rollbackOnAbort
*/
public function setRollbackOnAbort(rollbackOnAbort);
public function setRollbackOnAbort(boolean rollbackOnAbort);

/**
* Checks whether transaction is managed by a transaction manager
*
* @return boolean
*/
public function isManaged();
public function isManaged() -> boolean;

/**
* Returns validations messages from last save try
*
* @return array
*/
public function getMessages();
public function getMessages() -> array;

/**
* Checks whether internal connection is under an active transaction
*
* @return boolean
*/
public function isValid();
public function isValid() -> boolean;

/**
* Sets object which generates rollback action
Expand Down

0 comments on commit e544eb1

Please sign in to comment.