public function setTransCost($transCost)
    {
        $this->calculated = $transCost == $this->transCost ? $this->calculated : false;
        $this->transCost = $transCost;
    }
public function setTransCost($transCost)
    {
        $this->calculated = $transCost == $this->transCost ? $this->calculated : false;
        $this->transCost = $transCost;
    }
public function setTransCost ( $ transCost ) { $ this -> calculated = $ transCost == $ this -> transCost ? $ this -> calculated : false ; $ this -> transCost = $ transCost ; }
Sets cost of transposition operation.

@param int $transCost Cost of character transposition
@return void
Sets cost of transposition operation .