public function update(AbstractClassContent $content, array $data)
    {
        if (!isset($data['parameters']) && !isset($data['elements'])) {
            throw new \InvalidArgumentException('Provided data are not valids for ClassContentManager::update.');
        }

        if (isset($data['parameters'])) {
            $this->updateParameters($content, $data['parameters']);
        }

        if (isset($data['elements'])) {
            $this->updateElements($content, $data['elements']);
        }

        return $this;
    }