Path: blob/master/src/infrastructure/query/policy/PhabricatorQueryCursor.php
12242 views
<?php12final class PhabricatorQueryCursor3extends Phobject {45private $object;6private $rawRow;78public function setObject($object) {9$this->object = $object;10return $this;11}1213public function getObject() {14return $this->object;15}1617public function setRawRow(array $raw_row) {18$this->rawRow = $raw_row;19return $this;20}2122public function getRawRow() {23return $this->rawRow;24}2526public function getRawRowProperty($key) {27if (!is_array($this->rawRow)) {28throw new Exception(29pht(30'Caller is trying to "getRawRowProperty()" with key "%s", but this '.31'cursor has no raw row.',32$key));33}3435if (!array_key_exists($key, $this->rawRow)) {36throw new Exception(37pht(38'Caller is trying to access raw row property "%s", but the row '.39'does not have this property.',40$key));41}4243return $this->rawRow[$key];44}4546}474849