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

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