content = $content . $this->content; $this->checksum = null; return $this; } public function getContent() { return $this->content; } public function setContent($content) { $this->content = $content; $this->checksum = null; return $this; } public function getHexChecksum() { return current(unpack('H*', $this->getChecksum())); } public function getChecksum() { if ($this->checksum === null) { $this->checksum = sha1($this->content, true); } return $this->checksum; } public function addObjects($objects) { foreach ($objects as $object) { $this->addObject($object); } return $this; } public function addObject(IcingaObject $object) { $this->content .= $object->toConfigString(); $this->checksum = null; return $this; } }