/** * Construct the common closing statements (clean, done, EXPECTF...) * */ public function ConstructCommonClosing() { $this->fileClosing(); if ($this->optionalSections->hasDone()) { $this->addDone(); } if ($this->optionalSections->hasClean()) { $this->addClean(); } $this->addExpectf(); }