<?php
import("com.laurus.core.coreent.LCoreBean");
/**
 * Description of Profile
 * @tableName tbl_profile
 * @author Kunal Mestri <kunal@laurus-it.com>
 */
class Profile extends LCoreBean{
    /**
    * @columnName PROFILE_ID
    * @type int
    * @primary 
    */
    private $profileId;
    /**
    * @columnName PROFILE_BIRTHDAY
    * @type string
    */
    private $dob;
    /**
    * @columnName PROFILE_EMAIL_ID2
    * @type string
    */
    private $emailId1;
    /**
    * @columnName PROFILE_CONTACT_NO1
    * @type string
    */
    private $contact1;
    /**
    * @columnName PROFILE_CONTACT_NO2
    * @type string
    */
    private $contact2;
     /**
    * @columnName PROFILE_EMAIL_ID3
    * @type string
    */
    private $emailId2;
    /**
    * @columnName PROFILE_USER_ID
    * @type int
    * @searchable
    */
    private $userId;
    /**
    * @columnName PROFILE_ABOUT_ME
    * @type string
    */
    private $aboutMe;
    /**
    * @columnName PROFILE_FNAME
    * @type string
    */
    private $fname;
    /**
    * @columnName PROFILE_LNAME
    * @type string
    */
    private $lname;
    /**
    * @columnName PROFILE_GENDER
    * @type int
    */
    private $gender;
    /**
    * @columnName PROFILE_ADDRESS_ID
    * @type int
    */
    private $addressId;
    
    
    private $address;
    private $image;
    
    public function getAboutMe() {
        return $this->aboutMe;
    }

    public function setAboutMe($aboutMe) {
        $this->aboutMe = $aboutMe;
    }

    public function getEmailId1() {
        return $this->emailId1;
    }

    public function setEmailId1($emailId1) {
        $this->emailId1 = $emailId1;
    }

    public function getEmailId2() {
        return $this->emailId2;
    }

    public function setEmailId2($emailId2) {
        $this->emailId2 = $emailId2;
    }

    public function getContact1() {
        return $this->contact1;
    }

    public function setContact1($contact1) {
        $this->contact1 = $contact1;
    }

    public function getContact2() {
        return $this->contact2;
    }

    public function setContact2($contact2) {
        $this->contact2 = $contact2;
    }
     public function getImage() {
        return $this->image;
    }

    public function setImage($image) {
        $this->image = $image;
    }

    public function getAddress() {
        return $this->address;
    }

    public function setAddress($address) {
        $this->address = $address;
    }

    public function getProfileId() {
        return $this->profileId;
    }

    public function setProfileId($profileId) {
        $this->profileId = $profileId;
    }

    public function getFname() {
        return $this->fname;
    }

    public function setFname($fname) {
        $this->fname = $fname;
    }

    public function getLname() {
        return $this->lname;
    }

    public function setLname($lname) {
        $this->lname = $lname;
    }

    public function getDob() {
        return $this->dob;
    }

    public function setDob($dob) {
        $this->dob = $dob;
    }

    public function getUserId() {
        return $this->userId;
    }

    public function setUserId($userId) {
        $this->userId = $userId;
    }

   

    public function getGender() {
        return $this->gender;
    }

    public function setGender($gender) {
        $this->gender = $gender;
    }

    public function getAddressId() {
        return $this->addressId;
    }

    public function setAddressId($addressId) {
        $this->addressId = $addressId;
    }

    public function toJson() {
         $map=new Map();
         if($this->getProfileId()!=""){
         $map->put("profileId",  $this->getProfileId());}
         if($this->getFname()!=""){
         $map->put("fname",  $this->getFname());}
         if($this->getAboutMe()!=""){
         $map->put("aboutMe",  $this->getAboutMe());}
         if($this->getLName()!=""){
         $map->put("lname",$this->getLname());}
         if($this->getGender()!=""){
         $map->put("gender",$this->getGender());}
         if($this->getContact1()!=""){ 
         $map->put("contact1",$this->getContact1());}
           if($this->getContact2()!=""){ 
         $map->put("contact2",$this->getContact2());}
         if($this->getEmailId1()!=""){ 
         $map->put("emailId1",$this->getEmailId1());}
         if($this->getEmailId2()!=""){ 
         $map->put("emailId2",$this->getEmailId2());}
         if($this->getAddressId()!=""){ 
         $map->put("addressId",$this->getAddressId());}
         if($this->getAddress()!=""){
         $map->put("address",$this->getAddress());}
         if($this->getDob()!=""){
         $map->put("dob",$this->getDob());}
         if($this->getImage()!=""){
         $map->put("image",$this->getImage());}
         return $map->toJson();
     }
    
}

?>
