public function setFinal($final)
    {
        if ($final === true) {
            $this->addModifier(Modifiers::MODIFIER_FINAL);
        } else {
            $this->removeModifier(Modifiers::MODIFIER_FINAL);
        }
    }
public function setFinal($final)
    {
        if ($final === true) {
            $this->addModifier(Modifiers::MODIFIER_FINAL);
        } else {
            $this->removeModifier(Modifiers::MODIFIER_FINAL);
        }
    }
public function setFinal ( $ final ) { if ( $ final === true ) { $ this -> addModifier ( Modifiers :: MODIFIER_FINAL ) ; } else { $ this -> removeModifier ( Modifiers :: MODIFIER_FINAL ) ; } }
Set the entity "final" modifier.

@param boolean $final Flag if the entity is final or not.
Set the entity final modifier .