public function item($data, $transformer = null, $key = null)
    {
        $this->setResource(new Item($data, $transformer, $key));

        return $this;
    }
public function item($data, $transformer = null, $key = null)
    {
        $this->setResource(new Item($data, $transformer, $key));

        return $this;
    }
public function item ( $ data , $ transformer = null , $ key = null ) { $ this -> setResource ( new Item ( $ data , $ transformer , $ key ) ) ; return $ this ; }
Set the resource item to be transformed.

@param mixed                           $data
@param TransformerInterface|mixed|null $transformer
@param string|null                     $key

@throws \Rexlabs\Smokescreen\Exception\InvalidTransformerException

@return $this
Set the resource item to be transformed .