1: <?php
2: namespace Define\Core;
3:
4: if(!defined('DIRECT_ACCESS')) {
5: die("Direct access is forbidden.");
6: }
7:
8: /**
9: * BASE MODEL
10: *
11: * Base Model class. Shared by both BaseService and BaseDAO.
12: *
13: * @category Define
14: * @package Core
15: * @author Nitesh Apte <me@niteshapte.com>
16: * @copyright 2015 Nitesh Apte
17: * @version 1.0.0
18: * @since 1.0.0
19: * @license https://www.gnu.org/licenses/gpl.txt GNU General Public License v3
20: *
21: * This program is free software: you can redistribute it and/or modify
22: * it under the terms of the GNU General Public License as published by
23: * the Free Software Foundation, either version 3 of the License, or
24: * (at your option) any later version.
25: *
26: * This program is distributed in the hope that it will be useful,
27: * but WITHOUT ANY WARRANTY; without even the implied warranty of
28: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29: * GNU General Public License for more details.
30: *
31: * You should have received a copy of the GNU General Public License
32: * along with this program. If not, see <http://www.gnu.org/licenses/>.
33: */
34: abstract class BaseModel implements IBaseModel, IDefine {
35:
36: /**
37: * Object container instance
38: * @var ObjectContainer $container
39: */
40: protected $container = null;
41:
42: /**
43: * Initialize the Object Container.
44: *
45: * @param none
46: * @return void
47: */
48: public function __construct() {
49: $this->container = ObjectContainer::getInstance();
50: }
51: }