public function add_user_preference($name, $summary = '') {
        $this->add_type(new types\user_preference($name, $summary));

        return $this;
    }
public function add_user_preference($name, $summary = '') {
        $this->add_type(new types\user_preference($name, $summary));

        return $this;
    }
public function add_user_preference ( $ name , $ summary = '' ) { $ this -> add_type ( new types \ user_preference ( $ name , $ summary ) ) ; return $ this ; }
Add a type of user preference to the collection.

Typically this is a single user preference, but in some cases the
name of a user preference fits a particular format.

@param   string  $name The name of the user preference.
@param   string  $summary A description of what the preference is used for.
@return  $this
Add a type of user preference to the collection .