Skip to content

Commit

Permalink
Adding methods to the cookie interface
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Mar 5, 2017
1 parent 8065bc7 commit d1b95b8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/Http/Cookie/CookieInterface.php
Expand Up @@ -18,6 +18,35 @@
*/
interface CookieInterface
{
/**
* Sets the cookie name
*
* @param string $name Name of the cookie
* @return $this
*/
public function setName($name);

/**
* Gets the cookie name
*
* @return string
*/
public function getName();

/**
* Gets the cookie value
*
* @return string|array
*/
public function getValue();

/**
* Sets the raw cookie data
*
* @param string|array $value Value of the cookie to set
* @return $this
*/
public function setValue($value);

/**
* Returns the cookie as header value
Expand Down

0 comments on commit d1b95b8

Please sign in to comment.