userData[$name] = $value; return $this; } /** * Get data which was previously set. * * @since 4.1.0 * @param string $name * @return mixed|null */ public function getUserData( string $name ) { return $this->userData[$name] ?? null; } }