public function value($value = null)
    {
        if ($value !== null) {
            $this->value = $value;
        }

        return (string) $this->value;
    }
public function value($value = null)
    {
        if ($value !== null) {
            $this->value = $value;
        }

        return (string) $this->value;
    }
public function value ( $ value = null ) { if ( $ value !== null ) { $ this -> value = $ value ; } return ( string ) $ this -> value ; }
Returns cookie value.

@param mixed $value

@return mixed
Returns cookie value .