public function getPatch($key = null)
    {
        if ($key === null) {
            return $this->patch;
        } else {
            return (isset($this->patch[$key])) ? $this->patch[$key] : null;
        }
    }
public function getPatch($key = null)
    {
        if ($key === null) {
            return $this->patch;
        } else {
            return (isset($this->patch[$key])) ? $this->patch[$key] : null;
        }
    }
public function getPatch ( $ key = null ) { if ( $ key === null ) { return $ this -> patch ; } else { return ( isset ( $ this -> patch [ $ key ] ) ) ? $ this -> patch [ $ key ] : null ; } }
Get a value from PATCH query data, or the whole array.

@param (string) $key

@since 3.0.0

@return mixed
Get a value from PATCH query data or the whole array .