public function getDataFromResource($data, $object = null, $params = []) { if (is_numeric($data)) { return $this->toNumeric($data); } return $data; }