From af39b6d6caa845f07891c3f0b9e17299d0daaf6e Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Wed, 8 Feb 2023 02:44:15 +0800 Subject: [PATCH] Add ApiUser to replace the old catalyst api user #730 --- src/Entity/ApiUser.php | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/Entity/ApiUser.php diff --git a/src/Entity/ApiUser.php b/src/Entity/ApiUser.php new file mode 100644 index 00000000..0b82011f --- /dev/null +++ b/src/Entity/ApiUser.php @@ -0,0 +1,61 @@ +name = $name; + return $this; + } + + public function getName() + { + return $this->name; + } + + public function setMetadata($meta) + { + $this->metadata = $meta; + return $this; + } + + public function getMetadata() + { + if ($this->metadata == null) + return []; + + return $this->metadata; + } + + public function setRider($rider) + { + $this->rider = $rider; + return $this; + } + + public function getRider() + { + return $this->rider; + } +}