public function get($field, $default = null)
	{
		// if it's an object property, return it, else return the default
		return isset($this->user->{$field}) ? $this->user->{$field} : $default;
	}
public function get($field, $default = null)
	{
		// if it's an object property, return it, else return the default
		return isset($this->user->{$field}) ? $this->user->{$field} : $default;
	}
public function get ( $ field , $ default = null ) { // if it's an object property, return it, else return the default return isset ( $ this -> user -> { $ field } ) ? $ this -> user -> { $ field } : $ default ; }
Getter for user data.

@param  string  name of the user field to return
@param  mixed  value to return if the field requested does not exist

@return  mixed
Getter for user data .