<?php
defined('_WPBOOKINGPRO_EXEC') or die;
use WooBooking\CMS\bith_day\WBbirth_day;
if(!class_exists("WpBookingPro_wbcustomerModel")) {
    /**
     * Class WpBookingPro_wbcustomerModel
     */
    class WpBookingPro_wbcustomerModel extends WoobookingModelForm
    {
        /**
         * @var string
         */
        public $table_name = "customer";
        /**
         * @var string
         */
        public $context = "wbcustomer";

        /**
         * @param array $data_post
         * @return array|bool|object|void
         */
        public function save($data_post = array())
        {
            $input = Factory::getInput();
            $data_post = $input->getData()['data'];
            $customer = parent::save($data_post); // TODO: Change the autogenerated stub
            $customer->full_name = "{$customer->first_name} {$customer->last_name}";
        }
    }
}
