public function renderCell($value, $row, $router)
    {
        if (is_callable($this->callback)) {
            return call_user_func($this->callback, $value, $row, $router);
        }

        $value = is_bool($value) ? (int) $value : $value;
        if (array_key_exists((string) $value, $this->values)) {
            $value = $this->values[$value];
        }

        return $value;
    }
public function renderCell($value, $row, $router)
    {
        if (is_callable($this->callback)) {
            return call_user_func($this->callback, $value, $row, $router);
        }

        $value = is_bool($value) ? (int) $value : $value;
        if (array_key_exists((string) $value, $this->values)) {
            $value = $this->values[$value];
        }

        return $value;
    }
public function renderCell ( $ value , $ row , $ router ) { if ( is_callable ( $ this -> callback ) ) { return call_user_func ( $ this -> callback , $ value , $ row , $ router ) ; } $ value = is_bool ( $ value ) ? ( int ) $ value : $ value ; if ( array_key_exists ( ( string ) $ value , $ this -> values ) ) { $ value = $ this -> values [ $ value ] ; } return $ value ; }
Draw cell.

@param string $value
@param Row    $row
@param $router

@return string
Draw cell .