src/AbstractProcessor.php
public function setExtraData($data)
    {
        if (is_a($data, Arrayable::class)) {
            $data = $data->toArray();
        }

        if ( ! is_array($data)) {
            $data = [ $data ];
        }

        $this->extraData = $data;

        return $this;
    }
public function setExtraData($data)
    {
        if (is_a($data, Arrayable::class)) {
            $data = $data->toArray();
        }

        if ( ! is_array($data)) {
            $data = [ $data ];
        }

        $this->extraData = $data;

        return $this;
    }
public function setExtraData ( $ data ) { if ( is_a ( $ data , Arrayable :: class ) ) { $ data = $ data -> toArray ( ) ; } if ( ! is_array ( $ data ) ) { $ data = [ $ data ] ; } $ this -> extraData = $ data ; return $ this ; }
Set extra data that the processor should use during the import

@param array|Arrayable $data
@return $this
Set extra data that the processor should use during the import