cycleCheck = (bool) $flag; return $this; } /** * @return bool */ public function getCycleCheck() { return $this->cycleCheck; } /** * @param bool $flag * @return JsonOptions */ public function setEnableJsonExprFinder($flag) { $this->enableJsonExprFinder = (bool) $flag; return $this; } /** * @return bool */ public function getEnableJsonExprFinder() { return $this->enableJsonExprFinder; } /** * @param int $type * @return JsonOptions * @throws Exception\InvalidArgumentException */ public function setObjectDecodeType($type) { if ($type != ZendJson::TYPE_ARRAY && $type != ZendJson::TYPE_OBJECT) { throw new Exception\InvalidArgumentException( 'Unknown decode type: ' . $type ); } $this->objectDecodeType = (int) $type; return $this; } /** * @return int */ public function getObjectDecodeType() { return $this->objectDecodeType; } }