data['_cid'], $this->data['_id']); } public static function byId(AbstractWebflowApiClient $wfapi, string $id, array $options = []): AbstractWebflowApiField { $new = parent::byId($wfapi, $id); $new->data['_cid'] = $options['_cid'] ?? null; return $new; } public function load(bool $reload = false): self { $oldData = $this->data; parent::load($reload)->data = array_pop($this->data['items']); if (empty($this->data)) throw new NotFoundHttpException(sprintf("Item with ID %s (cID %s) is not found", $oldData['_id'], $oldData['_cid'])); return $this; } }