public function execute($data) {

        $this->getDetailsTransaction(str_replace('-', '', $data));

        if(!empty($this->_detailsTransactionByCode) && $this->_needConciliate){
            throw new \Exception('need to conciliate');
        }

        if (empty($this->_detailsTransactionByCode)) {
            throw new \Exception('empty');
        }
        return $this->_detailsTransactionByCode;
    }
public function execute($data) {

        $this->getDetailsTransaction(str_replace('-', '', $data));

        if(!empty($this->_detailsTransactionByCode) && $this->_needConciliate){
            throw new \Exception('need to conciliate');
        }

        if (empty($this->_detailsTransactionByCode)) {
            throw new \Exception('empty');
        }
        return $this->_detailsTransactionByCode;
    }
public function execute ( $ data ) { $ this -> getDetailsTransaction ( str_replace ( '-' , '' , $ data ) ) ; if ( ! empty ( $ this -> _detailsTransactionByCode ) && $ this -> _needConciliate ) { throw new \ Exception ( 'need to conciliate' ) ; } if ( empty ( $ this -> _detailsTransactionByCode ) ) { throw new \ Exception ( 'empty' ) ; } return $ this -> _detailsTransactionByCode ; }
Get details transactions

@param $data
@return array
@throws \Exception
Get details transactions