public function toArray()
    {
        $control = [
            'oid' => $this->resolveOid(),
            'iscritical' => $this->criticality
        ];
        if (!is_null($this->value)) {
            $control['value'] = $this->value;
        }

        return $control;
    }