1: <?php
2: 3: 4:
5:
6: namespace Contentstack\Stack\ContentType\Entry;
7:
8: use Contentstack\Stack\ContentType\BaseQuery\BaseQuery;
9: use Contentstack\Utility;
10:
11: require_once __DIR__."/base_query.php";
12: require_once __DIR__."/../utility.php";
13:
14: class Entry extends BaseQuery {
15: var $operation;
16: var $_query;
17: var $entryUid;
18: var $contentType = array();
19:
20: 21: 22: 23: 24: 25:
26: public function __construct($entryUid = '', $contentType = '') {
27: $this->entryUid = $entryUid;
28: parent::__construct($contentType, $this);
29: if(!\Contentstack\Utility\isEmpty($entryUid)) return $this;
30: }
31:
32: 33: 34: 35:
36: public function fetch() {
37: $this->operation = __FUNCTION__;
38: return \Contentstack\Utility\request($this);
39: }
40: }