/** * Create entity DOMElement * * Created entity and append it to scene * * @param Entity $entity * @return void */ public function appendEntity(Entity $entity) { $this->appendFormatComment('scene', "\n"); $this->scene->appendChild($entity->domElement($this->docObj)); }