Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consistency #395

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 1 addition & 31 deletions php/src/vaas/Message/Detection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,4 @@ class Detection
public ?int $engine;
public string $fileName;
public string $virus;

public function getEngine(): int
{
return $this->engine;
}

public function setEngine(int $engine): void
{
$this->engine = $engine;
}

public function getFileName(): string
{
return $this->fileName;
}

public function setFileName(string $fileName): void
{
$this->fileName = $fileName;
}

public function getVirus(): string
{
return $this->virus;
}

public function setVirus(string $virus): void
{
$this->virus = $virus;
}
}
}
43 changes: 0 additions & 43 deletions php/src/vaas/Message/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,55 +5,12 @@
class Error extends BaseMessage
{
public string $type;

public string $requestId;

public string $text;

public ?ProblemDetails $problem_details;

public function __construct()
{
$this->kind = Kind::Error;
}

/**
* @return string
*/
public function getType(): string
{
return $this->type;
}

/**
* @return Kind
*/
public function getKind(): Kind
{
return $this->kind;
}

/**
* @return ProblemDetails
*/
public function getProblemDetails(): ProblemDetails
{
return $this->problem_details;
}

/**
* @return string
*/
public function getRequestId(): string
{
return $this->requestId;
}

/**
* @return string
*/
public function getText(): string
{
return $this->text;
}
}
22 changes: 1 addition & 21 deletions php/src/vaas/Message/LibMagic.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,4 @@ class LibMagic
{
public string $fileType;
public string $mimeType;

public function getMimeType(): string
{
return $this->mimeType;
}

public function setMimeType(string $mimeType): void
{
$this->mimeType = $mimeType;
}

public function getFileType(): string
{
return $this->fileType;
}

public function setFileType(string $fileType): void
{
$this->fileType = $fileType;
}
}
}
19 changes: 1 addition & 18 deletions php/src/vaas/Message/ProblemDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,5 @@
class ProblemDetails
{
public string $type;

public string $detail;

/**
* @return string
*/
public function getDetail(): string
{
return $this->detail;
}

/**
* @return string
*/
public function getType(): string
{
return $this->type;
}
}
}
Loading