public function setSubCost($subCost)
    {
        $this->calculated = $subCost == $this->subCost ? $this->calculated : false;
        $this->subCost = $subCost;
    }
public function setSubCost($subCost)
    {
        $this->calculated = $subCost == $this->subCost ? $this->calculated : false;
        $this->subCost = $subCost;
    }
public function setSubCost ( $ subCost ) { $ this -> calculated = $ subCost == $ this -> subCost ? $ this -> calculated : false ; $ this -> subCost = $ subCost ; }
Sets cost of substitution operation.

@param int $subCost Cost of character substitution
@return void
Sets cost of substitution operation .