public function setFinal($isFinal) { $this->ctx->setAttribute('final', $isFinal ? 'true' : 'false'); }