public function setType($type)
    {
        $type = (string) $type;

        if ($this->exists() && $this->type !== $type) {
            $this->updated['type'] = true;
        }

        $this->type = $type;

        return $this;
    }