1: <?php
2: 3: 4:
5: namespace Contentstack\Stack\ContentType;
6:
7: use Contentstack\Stack\ContentType\Entry\Entry;
8: use Contentstack\Stack\ContentType\Query\Query;
9:
10: require_once __DIR__.'/entry.php';
11: require_once __DIR__.'/query.php';
12:
13: 14: 15:
16: class ContentType {
17: var $uid = '';
18: var $stack = '';
19:
20: 21: 22: 23: 24: 25:
26: public function __construct($uid = '', $stack = '') {
27: $this->uid = $uid;
28: $this->stack = $stack;
29: }
30:
31: 32: 33: 34: 35:
36: public function Entry($entry_uid = '') {
37: return new Entry($entry_uid, $this);
38: }
39:
40: 41: 42: 43: 44:
45: public function Query() {
46: return new Query($this);
47: }
48: }