public function setAttribute($key, $value)
    {
        switch ($key) {
            case 'orientation':
                $this->attributes[$key] = 
                    $value == 'horizontal' ?
                    wxHORIZONTAL :
                    wxVERTICAL
                ;
            default:
                $this->attributes[$key] = $value;
            break;
        }
    }
public function setAttribute($key, $value)
    {
        switch ($key) {
            case 'orientation':
                $this->attributes[$key] = 
                    $value == 'horizontal' ?
                    wxHORIZONTAL :
                    wxVERTICAL
                ;
            default:
                $this->attributes[$key] = $value;
            break;
        }
    }
public function setAttribute ( $ key , $ value ) { switch ( $ key ) { case 'orientation' : $ this -> attributes [ $ key ] = $ value == 'horizontal' ? wxHORIZONTAL : wxVERTICAL ; default : $ this -> attributes [ $ key ] = $ value ; break ; } }
Set the an element attribute

@param string $key
@param mixed $value
Set the an element attribute