$def_value ) { $this->{$key} = isset( $user->{'user_' . $key} ) ? $user->{'user_' . $key} : $def_value; } } /** * @return string */ public function get_name() { return trim( ucfirst( trim( is_string( $this->first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) ); } /** * @return bool */ public function is_verified() { return ( isset( $this->is_verified ) && true === $this->is_verified ); } /** * @return string */ static function get_type() { return 'user'; } }