public function getFormOfAddress()
    {
        if ($this->getGender() === self::GENDER_MALE && $this->getLastName()) {
            return 'Herr '.$this->getFirstName().' '.$this->getLastName();
        } elseif ($this->getGender() === self::GENDER_FEMALE && $this->getLastName()) {
            return 'Frau '.$this->getFirstName().' '.$this->getLastName();
        }

        return '';
    }
public function getFormOfAddress()
    {
        if ($this->getGender() === self::GENDER_MALE && $this->getLastName()) {
            return 'Herr '.$this->getFirstName().' '.$this->getLastName();
        } elseif ($this->getGender() === self::GENDER_FEMALE && $this->getLastName()) {
            return 'Frau '.$this->getFirstName().' '.$this->getLastName();
        }

        return '';
    }
public function getFormOfAddress ( ) { if ( $ this -> getGender ( ) === self :: GENDER_MALE && $ this -> getLastName ( ) ) { return 'Herr ' . $ this -> getFirstName ( ) . ' ' . $ this -> getLastName ( ) ; } elseif ( $ this -> getGender ( ) === self :: GENDER_FEMALE && $ this -> getLastName ( ) ) { return 'Frau ' . $ this -> getFirstName ( ) . ' ' . $ this -> getLastName ( ) ; } return '' ; }
Create address string

@return string
Create address string