public function getAttribute($name, $default = NULL) {

		return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;

	}
public function getAttribute($name, $default = NULL) {

		return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;

	}
public function getAttribute ( $ name , $ default = NULL ) { return isset ( $ this -> attributes [ $ name ] ) ? $ this -> attributes [ $ name ] : $ default ; }
Returns an attribute by its name.

@param string $name
@param mixed  $default

@return mixed
Returns an attribute by its name .