public function data($data)
    {
        if (!$data) {
            return $this;
        }

        // Validate without key
        if (!$this->lastKey) {
            $data = ['' => $data];
        }

        $this->options['data'] = $data;

        return $this;
    }
public function data($data)
    {
        if (!$data) {
            return $this;
        }

        // Validate without key
        if (!$this->lastKey) {
            $data = ['' => $data];
        }

        $this->options['data'] = $data;

        return $this;
    }
public function data ( $ data ) { if ( ! $ data ) { return $ this ; } // Validate without key if ( ! $ this -> lastKey ) { $ data = [ '' => $ data ] ; } $ this -> options [ 'data' ] = $ data ; return $ this ; }
Set data for validation

@param mixed $data
@return $this
Set data for validation