summaryrefslogtreecommitdiff
path: root/src/Model/Vote.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Vote.php')
-rw-r--r--src/Model/Vote.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Model/Vote.php b/src/Model/Vote.php
index c5415aa..273a7d8 100644
--- a/src/Model/Vote.php
+++ b/src/Model/Vote.php
@@ -26,5 +26,13 @@ class Vote
* @Column(type="integer")
*/
public int $value;
+
+ /**
+ * Vote constructor.
+ */
+ public function __contruct(int $value)
+ {
+ $this->value = $value;
+ }
}