Exemplo n.º 1
0
 /**
  *  Sets the statement ID
  *
  *  @access public
  *  @param integer $id this statements unique id
  *
  */
 public function setStatementID($id)
 {
     if (!is_init($id)) {
         throw new LedgerException('Statement ID must be an integer');
     }
     if ($id <= 0) {
         throw new LedgerException('Statement ID must be an integer > 0');
     }
     $this->statementID = $id;
 }
Exemplo n.º 2
0
 /**
  *  Set the events storage id
  *
  *  @access public
  *  @return void
  *  @param integer $id
  *
  */
 public function setEventId($id)
 {
     if (!is_init($id) || (int) $id < 0) {
         throw new LedgerException('Event ID must be an integer > 0');
     }
     $this->eventID = $id;
 }
Exemplo n.º 3
0
 /**
  *  Sets the account number this entry represents
  *
  *  @access public
  *  @return void
  *  @param integer the account id
  *
  */
 public function setAccountNumber($accountNumber)
 {
     if (!is_init($accountNumber)) {
         throw new LedgerException('Statement Entry account number must be an integer');
     }
     if ($accountNumber <= 0) {
         throw new LedgerException('Statement Entry account number must be an integer > 0');
     }
     $this->accountNumber = $accountNumber;
 }