12 namespace Fossology\UI\Api\Models;
76 public function getJSON($version=ApiVersion::V1)
78 return json_encode($this->
getArray($version));
85 public function getArray($version=ApiVersion::V1)
87 if ($version==ApiVersion::V2) {
89 'viewInfo' => $this->view_info,
90 'metaInfo' => $this->meta_info,
91 'packageInfo' => $this->package_info,
92 'tagInfo' => $this->tag_info,
93 'reuseInfo' => $this->reuse_info
97 'view_info' => $this->view_info,
98 'meta_info' => $this->meta_info,
99 'package_info' => $this->package_info,
100 'tag_info' => $this->tag_info,
101 'reuse_info' => $this->reuse_info
FileInfo model to contain general error and return values.
__construct($view_info, $meta_info, $package_info, $tag_info, $reuse_info)
getJSON($version=ApiVersion::V1)
getArray($version=ApiVersion::V1)