protected function bindData($data)
    {
        $dataClass = $this->dataClass;
        $object = new $dataClass();

        if ($object instanceof DataInterface) {
            return $object->bind($data);
        }

        foreach ((array) $data as $field => $value) {
            $object->$field = $value;
        }

        return $object;
    }