wp_user_id = (int) $wp_user_id; $this->is_end_user = (bool) $is_end_user; } /** * @return int */ public function get_wp_user_id() { return $this->wp_user_id; } /** * @return bool */ public function is_end_user() { return $this->is_end_user; } /** * @return array */ public function to_array() { return array( 'wp_user_id' => $this->get_wp_user_id(), 'is_end_user' => $this->is_end_user(), ); } }