user = $user; } /** * Get name. * * @return string */ public function getName() { return $this->name; } /** * Set name. * * @param string $name * * @return Client */ public function setName($name) { $this->name = $name; return $this; } /** * @return User */ public function getUser() { return $this->user; } /** * @VirtualProperty * * @OA\Property( * description="Client secret used for authorization", * type="string", * example="3_1lpybsn0od40css4w4ko8gsc8cwwskggs8kgg448ko0owo4c84", * ) * * @SerializedName("client_id") * @Groups({"user_api_with_client"}) */ public function getClientId() { return $this->getId() . '_' . $this->getRandomId(); } }