public function removeAccount(ChartAccountsAccount $account) {
        for ($i = count($this->accounts) - 1; 0 <= $i; --$i) {
            if ($account->getNumber() !== $this->accounts[$i]->getNumber()) {
                continue;
            }
            unset($this->accounts[$i]);
        }
        return $this;
    }
public function removeAccount(ChartAccountsAccount $account) {
        for ($i = count($this->accounts) - 1; 0 <= $i; --$i) {
            if ($account->getNumber() !== $this->accounts[$i]->getNumber()) {
                continue;
            }
            unset($this->accounts[$i]);
        }
        return $this;
    }
public function removeAccount ( ChartAccountsAccount $ account ) { for ( $ i = count ( $ this -> accounts ) - 1 ; 0 <= $ i ; -- $ i ) { if ( $ account -> getNumber ( ) !== $ this -> accounts [ $ i ] -> getNumber ( ) ) { continue ; } unset ( $ this -> accounts [ $ i ] ) ; } return $ this ; }
Remove an account.

@param ChartAccountsAccount $account The account.
@return AbstractChartAccountsModel Returns this charts of accounts model.
Remove an account .