public function parseEntity(Customer $entity) {

        $output = [
            $this->encodeInteger($entity->getCustomerNumber(), 9),
            $this->encodeString($entity->getTitle(), 10),
            $this->encodeString($entity->getSurname(), 25),
            $this->encodeString($entity->getFirstname(), 25),
            $this->encodeString($entity->getStreet(), 25),
            $this->encodeString($entity->getPCode(), 10),
            $this->encodeString($entity->getCity(), 25),
            $this->encodeString($entity->getCountry(), 3),
            $this->encodeString($entity->getTaxCode(), 16),
            $this->encodeString($entity->getIdDocumentNo(), 15),
            $this->encodeString($entity->getTelephone(), 20),
            $this->encodeString($entity->getRentalAgreementNo(), 20),
            $this->encodeDate($entity->getBeginDate()),
            $this->encodeDate($entity->getTerminationDate()),
            $this->encodeInteger($entity->getDeposit(), 12),
            $this->encodeInteger($entity->getMaximumLevel(), 4),
            $this->encodeString($entity->getRemarks(), 50),
            $this->encodeDateTime($entity->getDatetimeLastModification()),
            $this->encodeBoolean($entity->getBlocked()),
            $this->encodeDate($entity->getBlockedDate()),
            $this->encodeBoolean($entity->getDeletedRecord()),
            $this->encodeBoolean($entity->getTicketReturnAllowed()),
            $this->encodeBoolean($entity->getGroupCounting()),
            $this->encodeBoolean($entity->getEntryMaxLevelAllowed()),
            $this->encodeBoolean($entity->getMaxLevelCarPark()),
            $this->encodeString($entity->getRemarks2(), 50),
            $this->encodeString($entity->getRemarks3(), 50),
            $this->encodeString($entity->getDivision(), 25),
            $this->encodeString($entity->getEmail(), 120),
            $this->encodeBoolean($entity->getCountingNeutralCards()),
            $this->encodeString($entity->getNationality(), 3),
            $this->encodeString($entity->getAccountingNumber(), 20),
        ];

        return implode(";", $output);
    }
public function parseEntity(Customer $entity) {

        $output = [
            $this->encodeInteger($entity->getCustomerNumber(), 9),
            $this->encodeString($entity->getTitle(), 10),
            $this->encodeString($entity->getSurname(), 25),
            $this->encodeString($entity->getFirstname(), 25),
            $this->encodeString($entity->getStreet(), 25),
            $this->encodeString($entity->getPCode(), 10),
            $this->encodeString($entity->getCity(), 25),
            $this->encodeString($entity->getCountry(), 3),
            $this->encodeString($entity->getTaxCode(), 16),
            $this->encodeString($entity->getIdDocumentNo(), 15),
            $this->encodeString($entity->getTelephone(), 20),
            $this->encodeString($entity->getRentalAgreementNo(), 20),
            $this->encodeDate($entity->getBeginDate()),
            $this->encodeDate($entity->getTerminationDate()),
            $this->encodeInteger($entity->getDeposit(), 12),
            $this->encodeInteger($entity->getMaximumLevel(), 4),
            $this->encodeString($entity->getRemarks(), 50),
            $this->encodeDateTime($entity->getDatetimeLastModification()),
            $this->encodeBoolean($entity->getBlocked()),
            $this->encodeDate($entity->getBlockedDate()),
            $this->encodeBoolean($entity->getDeletedRecord()),
            $this->encodeBoolean($entity->getTicketReturnAllowed()),
            $this->encodeBoolean($entity->getGroupCounting()),
            $this->encodeBoolean($entity->getEntryMaxLevelAllowed()),
            $this->encodeBoolean($entity->getMaxLevelCarPark()),
            $this->encodeString($entity->getRemarks2(), 50),
            $this->encodeString($entity->getRemarks3(), 50),
            $this->encodeString($entity->getDivision(), 25),
            $this->encodeString($entity->getEmail(), 120),
            $this->encodeBoolean($entity->getCountingNeutralCards()),
            $this->encodeString($entity->getNationality(), 3),
            $this->encodeString($entity->getAccountingNumber(), 20),
        ];

        return implode(";", $output);
    }
public function parseEntity ( Customer $ entity ) { $ output = [ $ this -> encodeInteger ( $ entity -> getCustomerNumber ( ) , 9 ) , $ this -> encodeString ( $ entity -> getTitle ( ) , 10 ) , $ this -> encodeString ( $ entity -> getSurname ( ) , 25 ) , $ this -> encodeString ( $ entity -> getFirstname ( ) , 25 ) , $ this -> encodeString ( $ entity -> getStreet ( ) , 25 ) , $ this -> encodeString ( $ entity -> getPCode ( ) , 10 ) , $ this -> encodeString ( $ entity -> getCity ( ) , 25 ) , $ this -> encodeString ( $ entity -> getCountry ( ) , 3 ) , $ this -> encodeString ( $ entity -> getTaxCode ( ) , 16 ) , $ this -> encodeString ( $ entity -> getIdDocumentNo ( ) , 15 ) , $ this -> encodeString ( $ entity -> getTelephone ( ) , 20 ) , $ this -> encodeString ( $ entity -> getRentalAgreementNo ( ) , 20 ) , $ this -> encodeDate ( $ entity -> getBeginDate ( ) ) , $ this -> encodeDate ( $ entity -> getTerminationDate ( ) ) , $ this -> encodeInteger ( $ entity -> getDeposit ( ) , 12 ) , $ this -> encodeInteger ( $ entity -> getMaximumLevel ( ) , 4 ) , $ this -> encodeString ( $ entity -> getRemarks ( ) , 50 ) , $ this -> encodeDateTime ( $ entity -> getDatetimeLastModification ( ) ) , $ this -> encodeBoolean ( $ entity -> getBlocked ( ) ) , $ this -> encodeDate ( $ entity -> getBlockedDate ( ) ) , $ this -> encodeBoolean ( $ entity -> getDeletedRecord ( ) ) , $ this -> encodeBoolean ( $ entity -> getTicketReturnAllowed ( ) ) , $ this -> encodeBoolean ( $ entity -> getGroupCounting ( ) ) , $ this -> encodeBoolean ( $ entity -> getEntryMaxLevelAllowed ( ) ) , $ this -> encodeBoolean ( $ entity -> getMaxLevelCarPark ( ) ) , $ this -> encodeString ( $ entity -> getRemarks2 ( ) , 50 ) , $ this -> encodeString ( $ entity -> getRemarks3 ( ) , 50 ) , $ this -> encodeString ( $ entity -> getDivision ( ) , 25 ) , $ this -> encodeString ( $ entity -> getEmail ( ) , 120 ) , $ this -> encodeBoolean ( $ entity -> getCountingNeutralCards ( ) ) , $ this -> encodeString ( $ entity -> getNationality ( ) , 3 ) , $ this -> encodeString ( $ entity -> getAccountingNumber ( ) , 20 ) , ] ; return implode ( ";" , $ output ) ; }
Parse a customer entity.

@param Customer $entity The customer.
@return string Returns the parsed customer.
@throws TooLongDataException Throws a too long data exception if a data is too long.
Parse a customer entity .