private function guardInvalidArguments($field, array $input, $output)
    {
        if (!in_array($field, $this->getSupportedFields())) {
            throw UnsupportedFieldException::forField($field);
        }

        if (!($output instanceof IptcInterface)) {
            throw UnsupportedOutputException::forOutput($output);
        }
    }
private function guardInvalidArguments($field, array $input, $output)
    {
        if (!in_array($field, $this->getSupportedFields())) {
            throw UnsupportedFieldException::forField($field);
        }

        if (!($output instanceof IptcInterface)) {
            throw UnsupportedOutputException::forOutput($output);
        }
    }
private function guardInvalidArguments ( $ field , array $ input , $ output ) { if ( ! in_array ( $ field , $ this -> getSupportedFields ( ) ) ) { throw UnsupportedFieldException :: forField ( $ field ) ; } if ( ! ( $ output instanceof IptcInterface ) ) { throw UnsupportedOutputException :: forOutput ( $ output ) ; } }
Guard function for invalid arguments

@codeCoverageIgnore

@param string $field
@param array $input
@param object $output

@throws UnsupportedFieldException when asked to map an unsupported field
@throws UnsupportedOutputException when asked to map data on an unsupported output object

@return void
Guard function for invalid arguments