public function setExportHandler($type)
    {
        if (
            $type === self::EXPORT_NORMAL ||
            $type === self::EXPORT_ARRAY ||
            $type === self::EXPORT_SKIP ||
            is_callable($type)
        ) {
            $this->exportHandler = $type;
            return $this;
        }

        throw new InvalidArgumentException(
            "invalid value provided for 'type'; ".
            "expecting a callable, or one of the following contstants: ".
            "sndsgd\Field::EXPORT_NORMAL, sndsgd\Field::EXPORT_ARRAY, or ".
            "sndsgd\Field::EXPORT_SKIP"
        );
    }
public function setExportHandler($type)
    {
        if (
            $type === self::EXPORT_NORMAL ||
            $type === self::EXPORT_ARRAY ||
            $type === self::EXPORT_SKIP ||
            is_callable($type)
        ) {
            $this->exportHandler = $type;
            return $this;
        }

        throw new InvalidArgumentException(
            "invalid value provided for 'type'; ".
            "expecting a callable, or one of the following contstants: ".
            "sndsgd\Field::EXPORT_NORMAL, sndsgd\Field::EXPORT_ARRAY, or ".
            "sndsgd\Field::EXPORT_SKIP"
        );
    }
public function setExportHandler ( $ type ) { if ( $ type === self :: EXPORT_NORMAL || $ type === self :: EXPORT_ARRAY || $ type === self :: EXPORT_SKIP || is_callable ( $ type ) ) { $ this -> exportHandler = $ type ; return $ this ; } throw new InvalidArgumentException ( "invalid value provided for 'type'; " . "expecting a callable, or one of the following contstants: " . "sndsgd\Field::EXPORT_NORMAL, sndsgd\Field::EXPORT_ARRAY, or " . "sndsgd\Field::EXPORT_SKIP" ) ; }
Set the method by which to export the value

@param integer|callable $type
@return \sndsgd\Field
@throws InvalidArgumentException If $type is not valid
Set the method by which to export the value