diff --git a/src/Entity/Upload.php b/src/Entity/Upload.php index 85eadd9..c10032e 100644 --- a/src/Entity/Upload.php +++ b/src/Entity/Upload.php @@ -119,6 +119,16 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface return $this; } + public function isConfirmed(): bool + { + return in_array($this->getStatus(), [static::STATUS_CHECKED, static::STATUS_PAID]); + } + + public function isRejected(): bool + { + return static::STATUS_REJECTED === $this->getStatus(); + } + public function getFilename(): ?string { return $this->filename;