<?php
defined('_WPBOOKINGPRO_EXEC') or die;
if(!class_exists("WpBookingPro_AccountsModel")) {
    /**
     * Class WpBookingPro_AccountsModel
     */
    class WpBookingPro_AccountsModel extends WoobookingModelList
    {
        /**
         * @var string
         */
        public $table_name = "user";
        /**
         * @var string
         */
        public $context = "accounts";

        /**
         * @return mixed
         */
        public function getList()
        {
            $list = parent::getList(); // TODO: Change the autogenerated stub
            foreach ($list as $item) {
                $item->full_name = "{$item->first_name} {$item->last_name}";
            }
            return $list;
        }
    }
}
