public function result($name = null, $value = null)
    {
        if ($name === null) {
            return $this->result;
        }
        if (array_key_exists($name, $this->result)) {
            if ($value === null) {
                return $this->result[$name];
            }
            $this->result[$name] = $value;
        }
    }
public function result($name = null, $value = null)
    {
        if ($name === null) {
            return $this->result;
        }
        if (array_key_exists($name, $this->result)) {
            if ($value === null) {
                return $this->result[$name];
            }
            $this->result[$name] = $value;
        }
    }
public function result ( $ name = null , $ value = null ) { if ( $ name === null ) { return $ this -> result ; } if ( array_key_exists ( $ name , $ this -> result ) ) { if ( $ value === null ) { return $ this -> result [ $ name ] ; } $ this -> result [ $ name ] = $ value ; } }
Get or set the result data.

@param $name
@param $value

@return mixed
Get or set the result data .